From 6db608d1d3e27c525acfd13fe7ffeaab7d95ffe7 Mon Sep 17 00:00:00 2001 From: hunuza Date: Tue, 4 Aug 2009 18:44:33 +0200 Subject: [PATCH] [8307] Fix skinning for creatures without loot. Signed-off-by: hunuza --- src/game/Unit.cpp | 2 ++ src/shared/revision_nr.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index b1c0786c5..36f839f5f 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -650,6 +650,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()) diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 3331d8517..9fc2d21a7 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "8306" + #define REVISION_NR "8307" #endif // __REVISION_NR_H__