aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-01-08 14:41:01 -0600
committermegamage <none@none>2009-01-08 14:41:01 -0600
commit4296a32f606183189acafbaf90f952a0ee385b8f (patch)
tree94c674949a466d5460b732ed58cd62f7bee2bcd5 /src
parenta8d74dfb360e511e360e8b9af4f72105dbba995e (diff)
*Try to fix the bug that creatures still "spark" after respawn.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Creature.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp
index 629b5ec6d43..081f1160b1a 100644
--- a/src/game/Creature.cpp
+++ b/src/game/Creature.cpp
@@ -1155,6 +1155,7 @@ void Creature::SetLootRecipient(Unit *unit)
if (!unit)
{
m_lootRecipient = 0;
+ RemoveFlag(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_LOOTABLE);
RemoveFlag(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_OTHER_TAGGER);
return;
}