summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_spanningtree.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp
index 478dc5d9a..d413449e0 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -179,7 +179,7 @@ TreeServer* RouteEnumerate(TreeServer* Current, std::string ServerName)
return Current;
for (unsigned int q = 0; q < Current->ChildCount(); q++)
{
- TreeServer* found = RouteEnumerate(Current->GetChild(),ServerName);
+ TreeServer* found = RouteEnumerate(Current->GetChild(q),ServerName);
if (found)
{
return found;