From 85d7084e85c1779201b025887c45c5d46e38038f Mon Sep 17 00:00:00 2001 From: maximius Date: Sat, 31 Oct 2009 17:34:35 -0700 Subject: *Fix usage of grid removal state, thanks Sisif --HG-- branch : trunk --- src/game/ObjectMgr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game/ObjectMgr.cpp') diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index f8b915c0189..43a59c3aa61 100644 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -1447,10 +1447,10 @@ uint32 ObjectMgr::AddGOData(uint32 entry, uint32 mapId, float x, float y, float // Spawn if necessary (loaded grids only) // We use spawn coords to spawn - if(!map->Instanceable() && !map->IsRemovalGrid(x, y)) + if(!map->Instanceable() && map->IsLoaded(x, y)) { GameObject *go = new GameObject; - if(!go->LoadFromDB(guid, map)) + if (!go->LoadFromDB(guid, map)) { sLog.outError("AddGOData: cannot add gameobject entry %u to map", entry); delete go; -- cgit v1.2.3