summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 e960948ac..0bf0289ad 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -1904,7 +1904,7 @@ class TreeSocket : public InspSocket
{
_new->modes[(*v)-65] = 1;
/* For each mode thats set, increase counter */
- ModeHandler* mh = Instance->Modes->FindMode((*v)-65, MODETYPE_USER);
+ ModeHandler* mh = Instance->Modes->FindMode(*v, MODETYPE_USER);
if (mh)
mh->ChangeCount(1);
}