[10491] Search player in player list in update fields data prepare is bad idea.

This commit is contained in:
VladimirMangos 2010-09-16 22:50:33 +04:00
parent 6c2414b7d2
commit d83a7dbcd9
2 changed files with 2 additions and 2 deletions

View file

@ -661,7 +661,7 @@ void Object::BuildValuesUpdate(uint8 updatetype, ByteBuffer * data, UpdateMask *
else
{
// flag only for original loot recipent
if (target == ((Creature*)this)->GetOriginalLootRecipient())
if (target->GetObjectGuid() == ((Creature*)this)->GetLootRecipientGuid())
*data << m_uint32Values[ index ];
else
*data << (m_uint32Values[ index ] & ~(UNIT_DYNFLAG_TAPPED | UNIT_DYNFLAG_TAPPED_BY_PLAYER));