From 4b5bca4f0a5ae7c888747308697868862c09e783 Mon Sep 17 00:00:00 2001 From: megamage Date: Sat, 10 Jan 2009 10:43:57 -0600 Subject: *setActive(false) when creature dies. *Fix some script crash bugs. --HG-- branch : trunk --- src/game/Creature.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/game/Creature.cpp') diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp index 03eeecb3e10..226d2e97ebb 100644 --- a/src/game/Creature.cpp +++ b/src/game/Creature.cpp @@ -1643,6 +1643,7 @@ void Creature::setDeathState(DeathState s) { SetUInt64Value (UNIT_FIELD_TARGET,0); // remove target selection in any cases (can be set at aura remove in Unit::setDeathState) SetUInt32Value(UNIT_NPC_FLAGS, 0); + setActive(false); if(!isPet() && GetCreatureInfo()->SkinLootId) if ( LootTemplates_Skinning.HaveLootFor(GetCreatureInfo()->SkinLootId) ) -- cgit v1.2.3