From dc791d4286d236cf4cdb09241a3eabecd4f447e5 Mon Sep 17 00:00:00 2001 From: Vincent-Michael Date: Sun, 2 Aug 2015 22:05:02 +0200 Subject: Core/PacketIO: Update CMSG_SET_LOOT_METHOD for 6.2.0 --- src/server/game/Handlers/GroupHandler.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/server') diff --git a/src/server/game/Handlers/GroupHandler.cpp b/src/server/game/Handlers/GroupHandler.cpp index 8db7afbfa35..00c684feef4 100644 --- a/src/server/game/Handlers/GroupHandler.cpp +++ b/src/server/game/Handlers/GroupHandler.cpp @@ -348,7 +348,7 @@ void WorldSession::HandleSetLootMethodOpcode(WorldPackets::Party::SetLootMethod& if (!group->IsLeader(GetPlayer()->GetGUID())) return; - if (packet.LootMethod > NEED_BEFORE_GREED) + if (packet.LootMethod > PERSONAL_LOOT) return; if (packet.LootThreshold < ITEM_QUALITY_UNCOMMON || packet.LootThreshold > ITEM_QUALITY_ARTIFACT) @@ -359,9 +359,9 @@ void WorldSession::HandleSetLootMethodOpcode(WorldPackets::Party::SetLootMethod& /********************/ // everything's fine, do it - group->SetLootMethod((LootMethod)packet.LootMethod); + group->SetLootMethod(static_cast(packet.LootMethod)); group->SetMasterLooterGuid(packet.LootMasterGUID); - group->SetLootThreshold((ItemQualities)packet.LootThreshold); + group->SetLootThreshold(static_cast(packet.LootThreshold)); group->SendUpdate(); } -- cgit v1.2.3