diff --git a/src/common/kernel/magic.c b/src/common/kernel/magic.c index 8c53ed038..fa5c9a148 100644 --- a/src/common/kernel/magic.c +++ b/src/common/kernel/magic.c @@ -1874,6 +1874,7 @@ add_spellparameter(region *target_r, unit *u, const char *syntax, char ** param, while (!fail && *c && ifaction->locale)) { + pword = findparam(param[i++], u->faction->locale); + if (i>=size) pword = NOPARAM; + switch (pword) { case P_REGION: j = addparam_region(param+i, &spobj, u, ord); ++c;