fix(Core/Items): Fix duplication exploit where a player could loot infinitely from bags containing gold. (#21394)
This commit is contained in:
committed by
GitHub
parent
c070e4bddf
commit
c2986977d9
@@ -249,7 +249,7 @@ void LootItemStorage::RemoveStoredLootItem(ObjectGuid containerGUID, uint32 item
|
|||||||
|
|
||||||
// loot with empty itemList but unlootedCount > 0
|
// loot with empty itemList but unlootedCount > 0
|
||||||
// must be deleted manually by the player or traded
|
// must be deleted manually by the player or traded
|
||||||
if (!loot->unlootedCount)
|
if (!loot->unlootedCount && !loot->gold)
|
||||||
lootItemStore.erase(itr);
|
lootItemStore.erase(itr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user