From 3f38bcb156ca7c1015edf9d9e4cbda1d58df04ff Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 3 Jul 2004 10:30:25 +0000 Subject: [PATCH] Vrash, wenn REGION keyword in Zaubern ohne angegebene Region. --- src/common/kernel/magic.c | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/src/common/kernel/magic.c b/src/common/kernel/magic.c index b5336ccf0..8bd05ac3b 100644 --- a/src/common/kernel/magic.c +++ b/src/common/kernel/magic.c @@ -1875,11 +1875,12 @@ add_spellparameter(region *target_r, unit *u, const char *syntax, char ** param, while (!fail && *c && ifaction->locale); - if (i>=size) pword = NOPARAM; switch (pword) { case P_REGION: spobj = malloc(sizeof(spllprm)); spobj->flag = 0; spobj->typ = SPP_REGION; spobj->data.r = u->region; + j = 0; ++c; break; case P_UNIT: - j = addparam_unit(param+i, &spobj, u, ord); - ++c; + if (i