diff options
| author | Kandera <KanderaDev@gmail.com> | 2012-06-07 14:48:43 -0400 |
|---|---|---|
| committer | Kandera <KanderaDev@gmail.com> | 2012-06-07 14:48:43 -0400 |
| commit | f92ae938063060c8c1eeae9ec863dca1645e1985 (patch) | |
| tree | 7919b48acd53a16b1fab972a461504e6762fccd8 /src | |
| parent | 4bfb96fbcfb5a64cbaf70ede0a2f682987f1a877 (diff) | |
Core/Spells: fix crash introduced in d719730929db84674cee0b56834e2a9ef248e472 (thx vincent-michael)
Diffstat (limited to 'src')
| -rwxr-xr-x | src/server/game/Entities/Unit/Unit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index 3315760a2af..e89e5df2a0c 100755 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -2893,7 +2893,7 @@ void Unit::SetCurrentCastedSpell(Spell* pSpell) InterruptSpell(CURRENT_AUTOREPEAT_SPELL); m_AutoRepeatFirstCast = true; } - if (m_currentSpells[CURRENT_GENERIC_SPELL]->m_spellInfo->CalcCastTime(this) > 0 && IsNonMeleeSpellCasted(false, false, true)) + if ((m_currentSpells[CURRENT_GENERIC_SPELL] && m_currentSpells[CURRENT_GENERIC_SPELL]->m_spellInfo->CalcCastTime(this) > 0) && IsNonMeleeSpellCasted(false, false, true)) AddUnitState(UNIT_STATE_CASTING); } break; |
