*Fix a crash caused by 3881. Please do not use any revs between this and 3881.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-06-09 19:53:25 -05:00
parent 337772c433
commit a8e8bd1d28
2 changed files with 8 additions and 7 deletions

View File

@@ -601,9 +601,8 @@ void Map::RelocationNotify()
}
}
for(std::vector<Unit*>::iterator iter = i_unitsToNotify.begin(); iter != i_unitsToNotify.end(); ++iter)
{
(*iter)->m_Notified = false;
}
if(*iter)
(*iter)->m_Notified = false;
i_unitsToNotify.clear();
i_lock = false;
@@ -2130,8 +2129,9 @@ inline void Map::setNGrid(NGridType *grid, uint32 x, uint32 y)
void Map::DoDelayedMovesAndRemoves()
{
MoveAllCreaturesInMoveList();
RemoveAllObjectsInRemoveList();
//MoveAllCreaturesInMoveList();
//RemoveAllObjectsInRemoveList();
RelocationNotify();
}
void Map::AddObjectToRemoveList(WorldObject *obj)