summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-02-01 21:29:23 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-02-01 21:29:23 +0100
commite512476a22383131e2c0cb5449f7aa09b8841cf7 (patch)
treec99c8544d6bb7e27781c5748e6ff857205667eb6 /source
parentFixed GCC compilation (diff)
downloadcuberite-e512476a22383131e2c0cb5449f7aa09b8841cf7.tar
cuberite-e512476a22383131e2c0cb5449f7aa09b8841cf7.tar.gz
cuberite-e512476a22383131e2c0cb5449f7aa09b8841cf7.tar.bz2
cuberite-e512476a22383131e2c0cb5449f7aa09b8841cf7.tar.lz
cuberite-e512476a22383131e2c0cb5449f7aa09b8841cf7.tar.xz
cuberite-e512476a22383131e2c0cb5449f7aa09b8841cf7.tar.zst
cuberite-e512476a22383131e2c0cb5449f7aa09b8841cf7.zip
Diffstat (limited to '')
-rw-r--r--source/PluginManager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/PluginManager.cpp b/source/PluginManager.cpp
index 8f9b2db70..f25b8ec73 100644
--- a/source/PluginManager.cpp
+++ b/source/PluginManager.cpp
@@ -1018,9 +1018,9 @@ void cPluginManager::RemovePluginCommands(cPlugin * a_Plugin)
{
if (itr->second.m_Plugin == a_Plugin)
{
- 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;
+ CommandMap::iterator EraseMe = itr; // Stupid GCC doesn't have a std::map::erase() that would return the next iterator
+ ++itr;
+ m_Commands.erase(EraseMe);
}
else
{