[8241] One more cleanip and crash prevention :/ for prev. commits.

This commit is contained in:
VladimirMangos 2009-07-24 23:51:36 +04:00
parent aa23cf729c
commit 7c2ff6cfcb
2 changed files with 2 additions and 3 deletions

View file

@ -5777,9 +5777,8 @@ void Aura::HandleSchoolAbsorb(bool apply, bool Real)
} }
// Ice Barrier (remove effect from Shattered Barrier) // 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)) if (!((m_removeMode == AURA_REMOVE_BY_DEFAULT && !m_modifier.m_amount) || m_removeMode == AURA_REMOVE_BY_DISPEL))
return; return;

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "8240" #define REVISION_NR "8241"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__