From 9eb96b78114ecadd7eba0061879f4f37a4b2bf8e Mon Sep 17 00:00:00 2001 From: Schmoozerd Date: Fri, 25 Nov 2011 22:51:37 +0100 Subject: [PATCH] [11849] Add missing pointer check for spell 45989. Thanks to stfx for pointing Signed-off-by: Schmoozerd --- src/game/SpellEffects.cpp | 3 +++ src/shared/revision_nr.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index c3e0b0f78..ff304a445 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -1619,6 +1619,9 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx) } case 45989: // Summon Void Sentinel Summoner Visual { + if (!unitTarget) + return; + // summon void sentinel unitTarget->CastSpell(unitTarget, 45988, true); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index aabc2f211..fa1c34794 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 "11848" + #define REVISION_NR "11849" #endif // __REVISION_NR_H__