1
0

Fixed GCC compilation

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

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
{