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:
parent
6ce947ef26
commit
e512476a22
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user