forked from github/server
Vrash, wenn REGION keyword in Zaubern ohne angegebene Region.
This commit is contained in:
parent
6bec8beb75
commit
a7b6f852c4
|
@ -1874,6 +1874,7 @@ add_spellparameter(region *target_r, unit *u, const char *syntax, char ** param,
|
||||||
|
|
||||||
while (!fail && *c && i<size && param[i]!=NULL) {
|
while (!fail && *c && i<size && param[i]!=NULL) {
|
||||||
spllprm * spobj = NULL;
|
spllprm * spobj = NULL;
|
||||||
|
param_t pword;
|
||||||
int j = 0;
|
int j = 0;
|
||||||
switch (*c) {
|
switch (*c) {
|
||||||
case '+':
|
case '+':
|
||||||
|
@ -1911,7 +1912,9 @@ add_spellparameter(region *target_r, unit *u, const char *syntax, char ** param,
|
||||||
break;
|
break;
|
||||||
case 'k':
|
case 'k':
|
||||||
++c;
|
++c;
|
||||||
switch (findparam(param[i++], u->faction->locale)) {
|
pword = findparam(param[i++], u->faction->locale);
|
||||||
|
if (i>=size) pword = NOPARAM;
|
||||||
|
switch (pword) {
|
||||||
case P_REGION:
|
case P_REGION:
|
||||||
j = addparam_region(param+i, &spobj, u, ord);
|
j = addparam_region(param+i, &spobj, u, ord);
|
||||||
++c;
|
++c;
|
||||||
|
|
Loading…
Reference in New Issue