From b420ef8ea9118cbb4967daab9df81a50f4e2ddf0 Mon Sep 17 00:00:00 2001 From: jackpoz Date: Sat, 24 Jul 2021 15:38:04 +0200 Subject: Core/Misc: Fix static analysis issues (cherry picked from commit f127f959179a69ec335c5031417e7b366e685373) --- src/server/game/Loot/Loot.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/server/game/Loot/Loot.cpp b/src/server/game/Loot/Loot.cpp index 4ec7b9b484e..e4784f37650 100644 --- a/src/server/game/Loot/Loot.cpp +++ b/src/server/game/Loot/Loot.cpp @@ -36,8 +36,9 @@ // Constructor, copies most fields from LootStoreItem and generates random count LootItem::LootItem(LootStoreItem const& li) { - itemid = li.itemid; - conditions = li.conditions; + itemid = li.itemid; + itemIndex = 0; + conditions = li.conditions; ItemTemplate const* proto = sObjectMgr->GetItemTemplate(itemid); freeforall = proto && proto->HasFlag(ITEM_FLAG_MULTI_DROP); -- cgit v1.2.3