diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Entities/Creature/Creature.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/server/game/Entities/Creature/Creature.cpp b/src/server/game/Entities/Creature/Creature.cpp index d83653c9bcf..6905966e567 100644 --- a/src/server/game/Entities/Creature/Creature.cpp +++ b/src/server/game/Entities/Creature/Creature.cpp @@ -2962,11 +2962,19 @@ void Creature::AllLootRemovedFromCorpse() if (m_loot && m_loot->loot_type == LOOT_SKINNING && m_loot->isLooted()) return true; + bool hasSkinningLoot = false; for (auto const& [_, loot] : m_personalLoot) - if (loot->loot_type != LOOT_SKINNING || !loot->isLooted()) - return false; + { + if (loot->loot_type == LOOT_SKINNING) + { + if (!loot->isLooted()) + return false; - return true; + hasSkinningLoot = true; + } + } + + return hasSkinningLoot; }(); if (isFullySkinned) |