Browse Source

caster nullptr check

Emagi 1 month ago
parent
commit
1a641f23ce
1 changed files with 1 additions and 1 deletions
  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);
 				}
 			}