aboutsummaryrefslogtreecommitdiff
path: root/src/game/Object.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-04-08 17:34:01 -0500
committermegamage <none@none>2009-04-08 17:34:01 -0500
commite3272f2b0a3b7ce2e215614b2f5655a677e1c99c (patch)
tree18b27b58fd34a318bdc52e362752f0013e6ab15b /src/game/Object.cpp
parentd6be48326f11300c3e5361c4c5705b2db622b1b6 (diff)
parenta7e04a252fc04988dea2072241ad8825db747e58 (diff)
*Merge.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Object.cpp')
-rw-r--r--src/game/Object.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/Object.cpp b/src/game/Object.cpp
index b5f25596af3..07efce82458 100644
--- a/src/game/Object.cpp
+++ b/src/game/Object.cpp
@@ -1674,7 +1674,9 @@ Map const* WorldObject::GetBaseMap() const
void WorldObject::AddObjectToRemoveList()
{
- Map* map = MapManager::Instance().FindMap(GetMapId(), GetInstanceId());
+ assert(m_uint32Values);
+
+ Map* map = FindMap();
if(!map)
{
sLog.outError("Object (TypeId: %u Entry: %u GUID: %u) at attempt add to move list not have valid map (Id: %u).",GetTypeId(),GetEntry(),GetGUIDLow(),GetMapId());