summaryrefslogtreecommitdiff
path: root/src/configreader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r--src/configreader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp
index a6d6e3c85..7babc7bb7 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -706,8 +706,8 @@ void ServerConfig::CrossCheckConnectBlocks(ServerConfig* current)
ClassMap::iterator oldMask = oldBlocksByMask.find(typeMask);
if (oldMask != oldBlocksByMask.end())
{
- oldBlocksByMask.erase(oldMask);
ConnectClass* old = oldMask->second;
+ oldBlocksByMask.erase(oldMask);
old->Update(me);
delete me;
me = old;