caster nullptr check
This commit is contained in:
parent
11cd551808
commit
1a641f23ce
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue