*Fix some crash bugs.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-02-25 17:53:05 -06:00
parent 8770a90bc6
commit ccde296fd3
9 changed files with 55 additions and 33 deletions

View File

@@ -1538,7 +1538,7 @@ Map const* WorldObject::GetBaseMap() const
void WorldObject::AddObjectToRemoveList()
{
Map* map = GetMap();
Map* map = MapManager::Instance().FindMap(GetMapId(), GetInstanceId());
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());