From fe5fa582752175e3e44f28416ed5e534fb11c2fb Mon Sep 17 00:00:00 2001 From: megamage Date: Tue, 24 Feb 2009 20:05:29 -0600 Subject: *Try to fix some crash bug related to grid. --HG-- branch : trunk --- src/game/Creature.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/game/Creature.cpp') diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp index 0e649c66c01..ece6ea3e527 100644 --- a/src/game/Creature.cpp +++ b/src/game/Creature.cpp @@ -1675,6 +1675,8 @@ void Creature::setDeathState(DeathState s) } if(s == JUST_ALIVED) { + if(isPet()) + setActive(true); SetHealth(GetMaxHealth()); SetLootRecipient(NULL); Unit::setDeathState(ALIVE); -- cgit v1.2.3