diff options
| author | megamage <none@none> | 2009-08-26 19:28:21 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-08-26 19:28:21 -0500 |
| commit | 21af4cf832daeccb1617e37e15cd7b9bcebfb6c8 (patch) | |
| tree | 04d46e30bc492ba8aa7b449ab2a3f721e95d96a3 /src/game/Spell.cpp | |
| parent | 390257b2f6d4d4b03a3226a39b478b3ea92b4dea (diff) | |
*Some clean up and add debug info to find the reason of crash.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Spell.cpp')
| -rw-r--r-- | src/game/Spell.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 550b6e25906..132eb5fafb2 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -6154,7 +6154,7 @@ bool Spell::CheckTarget(Unit* target, uint32 eff) case SPELL_AURA_MOD_CHARM: case SPELL_AURA_MOD_POSSESS_PET: case SPELL_AURA_AOE_CHARM: - if(target->GetTypeId() == TYPEID_UNIT && ((Creature*)target)->IsVehicle()) + if(target->GetTypeId() == TYPEID_UNIT && target->IsVehicle()) return false; if(target->GetCharmerGUID()) return false; |
