diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-02-01 21:25:50 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-02-01 21:25:50 +0100 |
commit | 6ce947ef26922e44cf422d2fd07c3f031bec77b1 (patch) | |
tree | dba9b4ab8c4c996b2b377b3597a0a41f006fb7ba /source | |
parent | Updated MagicCarpet to work with current API (diff) | |
download | cuberite-6ce947ef26922e44cf422d2fd07c3f031bec77b1.tar cuberite-6ce947ef26922e44cf422d2fd07c3f031bec77b1.tar.gz cuberite-6ce947ef26922e44cf422d2fd07c3f031bec77b1.tar.bz2 cuberite-6ce947ef26922e44cf422d2fd07c3f031bec77b1.tar.lz cuberite-6ce947ef26922e44cf422d2fd07c3f031bec77b1.tar.xz cuberite-6ce947ef26922e44cf422d2fd07c3f031bec77b1.tar.zst cuberite-6ce947ef26922e44cf422d2fd07c3f031bec77b1.zip |
Diffstat (limited to 'source')
-rw-r--r-- | source/PluginManager.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/PluginManager.cpp b/source/PluginManager.cpp index ef7c9f3b3..8f9b2db70 100644 --- a/source/PluginManager.cpp +++ b/source/PluginManager.cpp @@ -1018,7 +1018,9 @@ void cPluginManager::RemovePluginCommands(cPlugin * a_Plugin) { if (itr->second.m_Plugin == a_Plugin) { - itr = m_Commands.erase(itr); + CommandMap::iterator NextItr = itr + 1; // Stupid GCC doesn't have a std::map::erase() that would return the next iterator + m_Commands.erase(itr); + itr = NextItr; } else { |