diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Object.cpp | 5 | ||||
-rw-r--r-- | src/game/Object.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/game/Object.cpp b/src/game/Object.cpp index 7966a79a84e..c0196c5a350 100644 --- a/src/game/Object.cpp +++ b/src/game/Object.cpp @@ -1556,6 +1556,11 @@ Map* WorldObject::GetMap() const return MapManager::Instance().GetMap(GetMapId(), this); } +Map* WorldObject::FindMap() const +{ + return MapManager::Instance().FindMap(GetMapId(), GetInstanceId()); +} + Map const* WorldObject::GetBaseMap() const { return MapManager::Instance().GetBaseMap(GetMapId()); diff --git a/src/game/Object.h b/src/game/Object.h index 7e18ea4db92..ef8a04c5c09 100644 --- a/src/game/Object.h +++ b/src/game/Object.h @@ -483,6 +483,7 @@ class TRINITY_DLL_SPEC WorldObject : public Object void SendPlaySound(uint32 Sound, bool OnlySelf); Map * GetMap() const; + Map * FindMap() const; Map const* GetBaseMap() const; Creature* SummonCreature(uint32 id, float x, float y, float z, float ang,TempSummonType spwtype,uint32 despwtime); GameObject* SummonGameObject(uint32 entry, float x, float y, float z, float ang, float rotation0, float rotation1, float rotation2, float rotation3, uint32 respawnTime); |