[11849] Add missing pointer check for spell 45989.

Thanks to stfx for pointing

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
Schmoozerd 2011-11-25 22:51:37 +01:00
parent 3ae1f25b9b
commit 9eb96b7811
2 changed files with 4 additions and 1 deletions

View file

@ -1619,6 +1619,9 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
} }
case 45989: // Summon Void Sentinel Summoner Visual case 45989: // Summon Void Sentinel Summoner Visual
{ {
if (!unitTarget)
return;
// summon void sentinel // summon void sentinel
unitTarget->CastSpell(unitTarget, 45988, true); unitTarget->CastSpell(unitTarget, 45988, true);

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 "11848" #define REVISION_NR "11849"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__