mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
[10491] Search player in player list in update fields data prepare is bad idea.
This commit is contained in:
parent
6c2414b7d2
commit
d83a7dbcd9
2 changed files with 2 additions and 2 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue