From 6ce947ef26922e44cf422d2fd07c3f031bec77b1 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Fri, 1 Feb 2013 20:25:50 +0000 Subject: Fixed GCC compilation git-svn-id: http://mc-server.googlecode.com/svn/trunk@1186 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/PluginManager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/PluginManager.cpp') 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 { -- cgit v1.2.3