Vrash, wenn REGION keyword in Zaubern ohne angegebene Region.

This commit is contained in:
Enno Rehling 2004-07-03 10:09:21 +00:00
parent a7b6f852c4
commit a960f790ad
1 changed files with 4 additions and 1 deletions

View File

@ -1916,7 +1916,10 @@ add_spellparameter(region *target_r, unit *u, const char *syntax, char ** param,
if (i>=size) pword = NOPARAM; if (i>=size) pword = NOPARAM;
switch (pword) { switch (pword) {
case P_REGION: case P_REGION:
j = addparam_region(param+i, &spobj, u, ord); spobj = malloc(sizeof(spllprm));
spobj->flag = 0;
spobj->typ = SPP_REGION;
spobj->data.r = u->region;
++c; ++c;
break; break;
case P_UNIT: case P_UNIT: