diff options
| author | megamage <none@none> | 2009-06-09 19:53:25 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-06-09 19:53:25 -0500 |
| commit | a8e8bd1d288d645414324353628cea3d1395bfce (patch) | |
| tree | 92c4770c20b155b0c5ee157705a7b9ed06b461fe /src/game/Map.cpp | |
| parent | 337772c433a4a031af152958d8d7b50944339459 (diff) | |
*Fix a crash caused by 3881. Please do not use any revs between this and 3881.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Map.cpp')
| -rw-r--r-- | src/game/Map.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/game/Map.cpp b/src/game/Map.cpp index e798a022671..a52b5138829 100644 --- a/src/game/Map.cpp +++ b/src/game/Map.cpp @@ -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) |
