mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
Fixed build (forgot to save file)
This commit is contained in:
@@ -431,13 +431,6 @@ void WorldSession::HandleLootMethodOpcode(WorldPacket & recv_data)
|
||||
|
||||
void WorldSession::HandleLootRoll(WorldPacket& recvData)
|
||||
{
|
||||
Group* group = GetPlayer()->GetGroup();
|
||||
if (!group)
|
||||
{
|
||||
recv_data.rfinish();
|
||||
return;
|
||||
}
|
||||
|
||||
uint64 guid;
|
||||
uint32 itemSlot;
|
||||
uint8 rollType;
|
||||
@@ -445,7 +438,10 @@ void WorldSession::HandleLootRoll(WorldPacket& recvData)
|
||||
recvData >> itemSlot;
|
||||
recvData >> rollType; // 0: pass, 1: need, 2: greed
|
||||
|
||||
// everything's fine, do it
|
||||
Group* group = GetPlayer()->GetGroup();
|
||||
if (!group)
|
||||
return;
|
||||
|
||||
group->CountRollVote(GetPlayer()->GetGUID(), guid, rollType);
|
||||
|
||||
switch (rollType)
|
||||
|
||||
Reference in New Issue
Block a user