Fixed GCC compilation

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1186 0a769ca7-a7f5-676a-18bf-c427514a06d6
master
madmaxoft@gmail.com 2013-02-01 20:25:50 +00:00
parent f00515ba2e
commit 6ce947ef26
1 changed files with 3 additions and 1 deletions

View File

@ -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
{