summaryrefslogtreecommitdiff
path: root/src/modules/m_namedmodes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_namedmodes.cpp')
-rw-r--r--src/modules/m_namedmodes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_namedmodes.cpp b/src/modules/m_namedmodes.cpp
index 00bb859d4..4d2363c4d 100644
--- a/src/modules/m_namedmodes.cpp
+++ b/src/modules/m_namedmodes.cpp
@@ -129,7 +129,7 @@ class ModuleNamedModes : public Module
if (modechar)
modelist[i] = modechar;
else
- modelist.erase(i, 1);
+ modelist.erase(i--, 1);
}
else if (mh && mh->GetNumParams(adding) && param_at < parameters.size())
{