mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Loot: Added loot slot check to Loot::LootItemInSlot (client sent-value)
Ref #28646
This commit is contained in:
@@ -902,6 +902,9 @@ LootItem const* Loot::GetItemInSlot(uint32 lootListId) const
|
||||
|
||||
LootItem* Loot::LootItemInSlot(uint32 lootListId, Player const* player, NotNormalLootItem** ffaItem)
|
||||
{
|
||||
if (lootListId >= items.size())
|
||||
return nullptr;
|
||||
|
||||
LootItem* item = &items[lootListId];
|
||||
bool is_looted = item->is_looted;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user