Core/Loot: fix possible crash from having a bad item
This commit is contained in:
@@ -472,7 +472,7 @@ void WorldSession::HandleLootMasterGiveOpcode(WorldPacket & recv_data)
|
|||||||
if (!loot)
|
if (!loot)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (slotid > loot->items.size() + loot->quest_items.size())
|
if (slotid >= loot->items.size() + loot->quest_items.size())
|
||||||
{
|
{
|
||||||
sLog->outDebug(LOG_FILTER_LOOT, "MasterLootItem: Player %s might be using a hack! (slot %d, size %lu)", GetPlayer()->GetName(), slotid, (unsigned long)loot->items.size());
|
sLog->outDebug(LOG_FILTER_LOOT, "MasterLootItem: Player %s might be using a hack! (slot %d, size %lu)", GetPlayer()->GetName(), slotid, (unsigned long)loot->items.size());
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user