Core/Creature: Reset loot recipient group on respawn.

Fixes issue 4051.

--HG--
branch : trunk
This commit is contained in:
linencloth
2010-09-17 15:10:10 +02:00
parent 164d6cce65
commit 7708e2ea06

View File

@@ -967,6 +967,7 @@ void Creature::SetLootRecipient(Unit *unit)
if (!unit)
{
m_lootRecipient = 0;
m_lootRecipientGroup = 0;
RemoveFlag(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_LOOTABLE|UNIT_DYNFLAG_TAPPED);
return;
}