mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 15:40:45 +01:00
Core/PacketIO: Fixed issue reported by static analysis
This commit is contained in:
@@ -8475,7 +8475,7 @@ void Player::SendLoot(ObjectGuid guid, LootType loot_type)
|
||||
WorldPackets::Loot::LootResponse packet;
|
||||
packet.LootObj = guid;
|
||||
packet.Owner = loot->GetGUID();
|
||||
packet.LootMethod = _lootMethod;
|
||||
packet._LootMethod = _lootMethod;
|
||||
packet.AcquireReason = loot_type;
|
||||
packet.Acquired = true; // false == No Loot (this too^^)
|
||||
loot->BuildLootResponse(packet, this, permission);
|
||||
|
||||
@@ -28,7 +28,7 @@ WorldPacket const* WorldPackets::Loot::LootResponse::Write()
|
||||
_worldPacket << Owner;
|
||||
_worldPacket << uint8(FailureReason);
|
||||
_worldPacket << uint8(AcquireReason);
|
||||
_worldPacket << uint8(LootMethod);
|
||||
_worldPacket << uint8(_LootMethod);
|
||||
_worldPacket << uint8(Threshold);
|
||||
_worldPacket << uint32(Coins);
|
||||
_worldPacket << uint32(Items.size());
|
||||
|
||||
@@ -65,7 +65,7 @@ namespace WorldPackets
|
||||
ObjectGuid LootObj;
|
||||
ObjectGuid Owner;
|
||||
uint8 Threshold = 2; // Most common value, 2 = Uncommon
|
||||
uint8 LootMethod = 0;
|
||||
uint8 _LootMethod = 0; ///< @see enum LootMethod
|
||||
uint8 AcquireReason = 0;
|
||||
uint8 FailureReason = 17; // Most common value
|
||||
uint32 Coins = 0;
|
||||
|
||||
Reference in New Issue
Block a user