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

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

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);