mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 07:37:03 +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
|
else
|
||||||
{
|
{
|
||||||
// flag only for original loot recipent
|
// flag only for original loot recipent
|
||||||
if (target == ((Creature*)this)->GetOriginalLootRecipient())
|
if (target->GetObjectGuid() == ((Creature*)this)->GetLootRecipientGuid())
|
||||||
*data << m_uint32Values[ index ];
|
*data << m_uint32Values[ index ];
|
||||||
else
|
else
|
||||||
*data << (m_uint32Values[ index ] & ~(UNIT_DYNFLAG_TAPPED | UNIT_DYNFLAG_TAPPED_BY_PLAYER));
|
*data << (m_uint32Values[ index ] & ~(UNIT_DYNFLAG_TAPPED | UNIT_DYNFLAG_TAPPED_BY_PLAYER));
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "10490"
|
#define REVISION_NR "10491"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue