1
0

Another GCC fix, hopefully this one will work

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1187 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com 2013-02-01 20:29:23 +00:00
parent 6ce947ef26
commit e512476a22

View File

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