*Fix the bug that summoned guardians cause crash (do not use the previous one).

--HG--
branch : trunk
This commit is contained in:
megamage committed 2008-12-30 22:01:45 -06:00
1 parent 815a7641d2
commit 1d800d912c
2 files changed
+9 -2

No files matched your search

+1 -1
View File
@@ -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() && IS_PLAYER_GUID(obj->GetOwnerGUID()) || obj->isPossessedByPlayer())
if(obj->isPet() /*&& IS_PLAYER_GUID(obj->GetOwnerGUID())*/ || obj->isPossessedByPlayer())
{
(*grid)(cell.CellX(), cell.CellY()).AddWorldObject<Creature>(obj, obj->GetGUID());
obj->SetCurrentCell(cell);