From d71e9e796f382d582fcde4b578d53513ceaa6876 Mon Sep 17 00:00:00 2001 From: Enno Date: Sat, 13 Mar 2010 19:18:56 +0100 Subject: [PATCH] temporary fix for a crash in sp_analyzemagic --- src/spells/spells.c | 3 +++ 1 file changed, 3 insertions(+) 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;