Emagi пре 2 месеци
родитељ
комит
1a641f23ce
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      EQ2/source/WorldServer/SpellProcess.cpp

+ 1 - 1
EQ2/source/WorldServer/SpellProcess.cpp

@@ -1734,7 +1734,7 @@ bool SpellProcess::CastProcessedSpell(LuaSpell* spell, bool passive, bool in_her
 					send_to_sender = false;
 				}
 				
-				if(spell->caster->GetZone()) {
+				if(spell->caster && spell->caster->GetZone()) {
 					spell->caster->GetZone()->SimpleMessage(CHANNEL_SPELLS_OTHER, effect_message.c_str(), target, 50, send_to_sender);
 				}
 			}