diff options
author | megamage <none@none> | 2009-03-26 08:50:51 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-03-26 08:50:51 -0600 |
commit | 1c2e62d2f4cf828cac5e48e20abd8876c2725c65 (patch) | |
tree | 5a13544c238682753ccd68608e8e4c96f6258ea3 /src/game/Object.cpp | |
parent | 9f27e0be867bd7e5d78defa28b25928decf71df3 (diff) |
*Backport a missing function from TC2.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Object.cpp')
-rw-r--r-- | src/game/Object.cpp | 5 |
1 files changed, 5 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()); |