fix(Core/Items): Fix duplication exploit where a player could loot infinitely from bags containing gold. (#21394)

This commit is contained in:
Anton Popovichenko
2025-02-11 17:23:01 +01:00
committed by GitHub
parent c070e4bddf
commit c2986977d9

View File

@@ -249,7 +249,7 @@ void LootItemStorage::RemoveStoredLootItem(ObjectGuid containerGUID, uint32 item
// loot with empty itemList but unlootedCount > 0
// must be deleted manually by the player or traded
if (!loot->unlootedCount)
if (!loot->unlootedCount && !loot->gold)
lootItemStore.erase(itr);
}