diff --git a/src/spells/spells.c b/src/spells/spells.c index 2ecf59358..330545adb 100644 --- a/src/spells/spells.c +++ b/src/spells/spells.c @@ -4906,6 +4906,9 @@ sp_analysemagic(castorder *co) int cast_level = co->level; spellparameter *pa = co->par; + if (!pa->param) { + return 0; + } /* Objekt ermitteln */ obj = pa->param[0]->typ;