aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-05 16:11:43 -0500
committermegamage <none@none>2009-08-05 16:11:43 -0500
commitdf017667a50eee9105fcb464b84339102c89b339 (patch)
tree44e73c9530789f0a58d2176a35a234a853015aeb /src
parente7ebddfc9a8b576bf84e0dd5fd30cef2268de65e (diff)
[8307] Fix skinning for creatures without loot.
Signed-off-by: hunuza <hunuza@gmail.com> --HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Unit.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 3bd529be8f1..1eb4e8bd723 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -868,6 +868,8 @@ uint32 Unit::DealDamage(Unit *pVictim, uint32 damage, CleanDamage const* cleanDa
// only lootable if it has loot or can drop gold
if(cVictim->GetCreatureInfo()->lootid || cVictim->GetCreatureInfo()->maxgold > 0)
cVictim->SetUInt32Value(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_LOOTABLE);
+ else
+ cVictim->lootForBody = true; // needed for skinning
}
// Call creature just died function
if (cVictim->AI())