From 67ea3f3d0a48683323fa1e4e494cb2c11eacfebb Mon Sep 17 00:00:00 2001 From: megamage Date: Tue, 30 Dec 2008 21:06:26 -0600 Subject: *A temp fix for the bug that summoned guardians cause crash. --HG-- branch : trunk --- src/game/Map.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game') diff --git a/src/game/Map.cpp b/src/game/Map.cpp index 99474bfedf9..f8e5077d52f 100644 --- a/src/game/Map.cpp +++ b/src/game/Map.cpp @@ -257,7 +257,7 @@ template<> void Map::AddToGrid(Creature* obj, NGridType *grid, Cell const& cell) { // add to world object registry in grid - if(obj->isPet() || obj->isPossessedByPlayer()) + if(obj->isPet() && IS_PLAYER_GUID(obj->GetOwnerGUID()) || obj->isPossessedByPlayer()) { (*grid)(cell.CellX(), cell.CellY()).AddWorldObject(obj, obj->GetGUID()); obj->SetCurrentCell(cell); -- cgit v1.2.3