Core/PacketIO: Fixed issue reported by static analysis

This commit is contained in:
Vincent-Michael
2016-08-24 18:25:44 +02:00
parent 2017c515de
commit 5b11bb187d
3 changed files with 3 additions and 3 deletions

View File

@@ -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);

View File

@@ -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());

View File

@@ -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;