From 7c2ff6cfcbafb455ee8ca853a102d6668f232811 Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Fri, 24 Jul 2009 23:51:36 +0400 Subject: [PATCH] [8241] One more cleanip and crash prevention :/ for prev. commits. --- src/game/SpellAuras.cpp | 3 +-- src/shared/revision_nr.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index 10bfa0673..5f2036938 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -5777,9 +5777,8 @@ void Aura::HandleSchoolAbsorb(bool apply, bool Real) } // Ice Barrier (remove effect from Shattered Barrier) - if(!apply && m_spellProto->SpellIconID == 32 && m_spellProto->SpellFamilyName == SPELLFAMILY_MAGE) + if(!apply && caster && m_spellProto->SpellIconID == 32 && m_spellProto->SpellFamilyName == SPELLFAMILY_MAGE) { - Unit* caster = GetCaster(); if (!((m_removeMode == AURA_REMOVE_BY_DEFAULT && !m_modifier.m_amount) || m_removeMode == AURA_REMOVE_BY_DISPEL)) return; diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 646294363..74a78af92 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 "8240" + #define REVISION_NR "8241" #endif // __REVISION_NR_H__