From cd4e197f42fe886edecfb0c1c06b9a771004fc05 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 4 Aug 2006 15:40:14 +0000 Subject: Bugs bugs git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4709 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index a4013ce79..d3d112ff4 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -1153,10 +1153,10 @@ class TreeSocket : public InspSocket modelist[0] = params[0].c_str(); modelist[1] = to_keep.c_str(); - for (n = 2; (n < params.size()) && (n < 64); n++) + for (n = 2; (q < params.size()) && (n < 64); n++) { log(DEBUG,"Item %d of %d",n, params.size()); - modelist[q++] = params_to_keep[n].c_str(); + modelist[n] = params_to_keep[q++].c_str(); } if (smode) -- cgit v1.2.3