Core/Loot: Added loot slot check to Loot::LootItemInSlot (client sent-value)

Ref #28646
This commit is contained in:
Shauren
2023-01-02 19:48:54 +01:00
parent e2fad9e856
commit 2eea58f26e

View File

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