fix(Core/Items): Fix duplication exploit where a player could loot infinitely from bags containing gold. (#21394)
This commit is contained in:
parent
c070e4bddf
commit
c2986977d9
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user