aboutsummaryrefslogtreecommitdiff
path: root/src/game/Creature.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-02-24 20:05:29 -0600
committermegamage <none@none>2009-02-24 20:05:29 -0600
commitfe5fa582752175e3e44f28416ed5e534fb11c2fb (patch)
tree9b4d1023ed739a09fc2a7561ba954a4e60dfd373 /src/game/Creature.cpp
parenta8573dbe74d5bb0c1f0721fda4de3d619d52ebfd (diff)
*Try to fix some crash bug related to grid.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Creature.cpp')
-rw-r--r--src/game/Creature.cpp2
1 files changed, 2 insertions, 0 deletions
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);