diff options
author | robinsch <robinsch@users.noreply.github.com> | 2021-07-18 14:29:02 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-03-11 19:03:12 +0100 |
commit | 0910bca34cd36ae17652daef9621c318772270d1 (patch) | |
tree | 77139858cf729d29f0439dc4bd607018422e93bf /src/server/game/Loot/Loot.cpp | |
parent | a8dd1d10311a9d2c1303fbd70be6576abc15e202 (diff) |
[Exploit/Dupe] Container item (#26689)
* Core/Item: Fixed possible dupe with container items containing non unique non stackable items
* Fixed build
* Update sql script and related base structure
Co-authored-by: jackpoz <giacomopoz@gmail.com>
(cherry picked from commit d1e913162e0a96918c70ba4ec3f62f4186ee4707)
Diffstat (limited to 'src/server/game/Loot/Loot.cpp')
-rw-r--r-- | src/server/game/Loot/Loot.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/game/Loot/Loot.cpp b/src/server/game/Loot/Loot.cpp index 4853ef765f6..4ec7b9b484e 100644 --- a/src/server/game/Loot/Loot.cpp +++ b/src/server/game/Loot/Loot.cpp @@ -304,6 +304,7 @@ void Loot::AddItem(LootStoreItem const& item) LootItem generatedLoot(item); generatedLoot.context = _itemContext; generatedLoot.count = std::min(count, proto->GetMaxStackSize()); + generatedLoot.itemIndex = lootItems.size(); if (_itemContext != ItemContext::NONE) { std::set<uint32> bonusListIDs = sDB2Manager.GetDefaultItemBonusTree(generatedLoot.itemid, _itemContext); |