From e512476a22383131e2c0cb5449f7aa09b8841cf7 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Fri, 1 Feb 2013 20:29:23 +0000 Subject: Another GCC fix, hopefully this one will work git-svn-id: http://mc-server.googlecode.com/svn/trunk@1187 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/PluginManager.cpp | 6 +++--- 1 file 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 { -- cgit v1.2.3