summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r--src/modules/m_spanningtree/utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/utils.cpp b/src/modules/m_spanningtree/utils.cpp
index b458988c4..5e1d226ab 100644
--- a/src/modules/m_spanningtree/utils.cpp
+++ b/src/modules/m_spanningtree/utils.cpp
@@ -74,7 +74,7 @@ TreeServer* SpanningTreeUtilities::BestRouteTo(const std::string &ServerName)
{
Found = FindServer(u->server);
if (Found)
- return Found;
+ return Found->GetRoute();
}
return NULL;