*Fix a crash.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-02-26 17:01:02 -06:00
parent ee6418d92a
commit 23ef8a6dd6
3 changed files with 33 additions and 13 deletions
+2
View File
@@ -236,6 +236,7 @@ class TRINITY_DLL_SPEC Map : public GridRefManager<NGridType>, public Trinity::O
bool IsBattleGroundOrArena() const { return i_mapEntry && i_mapEntry->IsBattleGroundOrArena(); }
void AddObjectToRemoveList(WorldObject *obj);
void AddObjectToSwitchList(WorldObject *obj, bool on);
void DoDelayedMovesAndRemoves();
virtual bool RemoveBones(uint64 guid, float x, float y);
@@ -343,6 +344,7 @@ class TRINITY_DLL_SPEC Map : public GridRefManager<NGridType>, public Trinity::O
bool i_lock;
std::vector<uint64> i_unitsToNotify;
std::set<WorldObject *> i_objectsToRemove;
std::map<WorldObject*, bool> i_objectsToSwitch;
// Type specific code for add/remove to/from grid
template<class T>