diff options
author | Kaelima <kaelima@live.se> | 2012-03-18 19:57:03 +0100 |
---|---|---|
committer | Kaelima <kaelima@live.se> | 2012-03-18 19:57:03 +0100 |
commit | eff48a42d1af91bda4d534cfdf61e3fd1b0eb9a5 (patch) | |
tree | 859d7e5c5241c36121766f3eb71fe1c6ab6f9194 /src | |
parent | 5acbd354119b53b6df292390acf95a582c574e5f (diff) |
Core/Spell: Fix crash for Glyph of Divinity
Diffstat (limited to 'src')
-rwxr-xr-x | src/server/game/Entities/Unit/Unit.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index 151f7491567..1246bbc0bcb 100755 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -7991,10 +7991,10 @@ bool Unit::HandleAuraProc(Unit* victim, uint32 damage, Aura* triggeredByAura, Sp { *handled = true; // Check if we are the target and prevent mana gain - if (triggeredByAura->GetCasterGUID() == victim->GetGUID()) + if (victim && triggeredByAura->GetCasterGUID() == victim->GetGUID()) return false; // Lookup base amount mana restore - for (uint8 i = 0; i<MAX_SPELL_EFFECTS; i++) + for (uint8 i = 0; i < MAX_SPELL_EFFECTS; i++) { if (procSpell->Effects[i].Effect == SPELL_EFFECT_ENERGIZE) { @@ -17018,7 +17018,7 @@ void Unit::ExitVehicle(Position const* /*exitPosition*/) //! to specify exit coordinates and either store those per passenger, or we need to //! init spline movement based on those coordinates in unapply handlers, and //! relocate exiting passengers based on Unit::moveSpline data. Either way, - //! Coming Soon™ + //! Coming Soon� } void Unit::_ExitVehicle(Position const* exitPosition) |