diff options
author | megamage <none@none> | 2009-01-08 09:43:50 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-01-08 09:43:50 -0600 |
commit | e86712bb6d613d16e9e681309295dccf5ea8dd05 (patch) | |
tree | b4bc16b5c899ca6a543e191fdf86bccc4e9c67f1 /src/game/Unit.cpp | |
parent | 3df72ce46112e0cc99d25b7f44794c009c224f24 (diff) |
*Fix a crash caused by using item.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r-- | src/game/Unit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index fc76eadfe45..85f13097a14 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -641,7 +641,7 @@ uint32 Unit::DealDamage(Unit *pVictim, uint32 damage, CleanDamage const* cleanDa CreatureInfo const* cInfo = ((Creature*)pVictim)->GetCreatureInfo(); if(cInfo && cInfo->lootid) - pVictim->SetUInt32Value(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_LOOTABLE); + pVictim->SetFlag(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_LOOTABLE); // some critters required for quests if(GetTypeId() == TYPEID_PLAYER) |