diff options
| author | megamage <none@none> | 2008-11-29 13:08:23 -0600 | 
|---|---|---|
| committer | megamage <none@none> | 2008-11-29 13:08:23 -0600 | 
| commit | 3d8d45c57a84538afbf716fc9304ea3207ea1948 (patch) | |
| tree | d0dd806cae116e624bb6d999123c8dd70b411736 /src/game/Map.h | |
| parent | f2814351afa9c3b14eb6d055e655ccbb762589e2 (diff) | |
*Do unit relocation notification only once per update. Hope this can solve the stealth crash problem once for all.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Map.h')
| -rw-r--r-- | src/game/Map.h | 2 | 
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/Map.h b/src/game/Map.h index 5f2212e53a7..554b43217e1 100644 --- a/src/game/Map.h +++ b/src/game/Map.h @@ -246,6 +246,7 @@ class TRINITY_DLL_SPEC Map : public GridRefManager<NGridType>, public Trinity::O          void AddActiveObject(WorldObject* obj) { i_activeObjects.insert(obj); }          void RemoveActiveObject(WorldObject* obj) { i_activeObjects.erase(obj); } +        void AddUnitToNotify(Unit* unit);          void SendToPlayers(WorldPacket const* data) const; @@ -314,6 +315,7 @@ class TRINITY_DLL_SPEC Map : public GridRefManager<NGridType>, public Trinity::O          time_t i_gridExpiry;          std::set<WorldObject *> i_activeObjects; +        std::vector<Unit*> i_unitsToNotify;          std::set<WorldObject *> i_objectsToRemove;          // Type specific code for add/remove to/from grid  | 
