diff options
author | megamage <none@none> | 2009-04-20 20:28:19 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-04-20 20:28:19 -0500 |
commit | fc7e1db9fba443d523f0af7e0e32a37bad0163d3 (patch) | |
tree | 1ca0cb3689dc076782b8f84589dfd1fbe78fe9ac /src/game/InstanceData.cpp | |
parent | b4046ddf884871ec6d99df27c9f62370aa54036c (diff) |
[7690] Move GetCreature/GetGameobject to class Map. Author: VladimirMangos
* This let get objects at map without reference to player or another object.
* Simplify future implementation for per-map storage for like objects
--HG--
branch : trunk
Diffstat (limited to 'src/game/InstanceData.cpp')
-rw-r--r-- | src/game/InstanceData.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/InstanceData.cpp b/src/game/InstanceData.cpp index 808ebca2f59..c5eeda84566 100644 --- a/src/game/InstanceData.cpp +++ b/src/game/InstanceData.cpp @@ -33,7 +33,7 @@ void InstanceData::SaveToDB() void InstanceData::HandleGameObject(uint64 GUID, bool open, GameObject *go) { if(!go) - go = instance->GetGameObjectInMap(GUID); + go = instance->GetGameObject(GUID); if(go) go->SetGoState(open ? 0 : 1); else |