From 086b20edbcc76bb6b80ef4fe2845d1f4e4087bd9 Mon Sep 17 00:00:00 2001 From: Skjalf <47818697+Nyeriah@users.noreply.github.com> Date: Wed, 15 Dec 2021 13:26:02 -0300 Subject: [PATCH] =?UTF-8?q?fix(Core/Unit):=20fix=20quest=20items=20not=20d?= =?UTF-8?q?ropping=20if=20they=20are=20the=20only=20thi=E2=80=A6=20(#9723)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server/game/Loot/LootMgr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/game/Loot/LootMgr.h b/src/server/game/Loot/LootMgr.h index 32b1021f1..59e6c341c 100644 --- a/src/server/game/Loot/LootMgr.h +++ b/src/server/game/Loot/LootMgr.h @@ -363,7 +363,7 @@ struct Loot loot_type = LOOT_NONE; } - [[nodiscard]] bool empty() const { return items.empty() && gold == 0; } + [[nodiscard]] bool empty() const { return items.empty() && quest_items.empty() && gold == 0; } [[nodiscard]] bool isLooted() const { return gold == 0 && unlootedCount == 0; } void NotifyItemRemoved(uint8 lootIndex);