mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
Fix server crash. Thank H0zen/mpfans
This commit is contained in:
parent
08fb832e0d
commit
253017e2eb
1 changed files with 3 additions and 1 deletions
|
|
@ -1166,7 +1166,9 @@ void Map::RemoveFromActive(WorldObject* obj)
|
|||
ActiveNonPlayers::iterator itr = m_activeNonPlayers.find(obj);
|
||||
if (itr == m_activeNonPlayersIter)
|
||||
{ ++m_activeNonPlayersIter; }
|
||||
m_activeNonPlayers.erase(itr);
|
||||
|
||||
if (itr != m_activeNonPlayers.end())
|
||||
{ m_activeNonPlayers.erase(itr); }
|
||||
}
|
||||
else
|
||||
{ m_activeNonPlayers.erase(obj); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue