forked from github/server
Fehler in Bugfix Spell-Parameter Parsing
This commit is contained in:
parent
ddf45ee534
commit
b9aabcc944
1 changed files with 14 additions and 12 deletions
|
@ -1857,11 +1857,13 @@ add_spellparameter(region *target_r, unit *u, const char *syntax, char ** param,
|
||||||
boolean fail = false;
|
boolean fail = false;
|
||||||
int i = 0;
|
int i = 0;
|
||||||
int p = 0;
|
int p = 0;
|
||||||
const char * c = syntax;
|
const char * c;
|
||||||
spellparameter *par;
|
spellparameter *par;
|
||||||
int minlen = 0;
|
int minlen = 0;
|
||||||
|
|
||||||
while (*c!=0) if (*c++!='+' && *c++!='k') ++minlen;
|
for (c=syntax;*c!=0;++c) {
|
||||||
|
if (*c!='+' && *c!='k') ++minlen;
|
||||||
|
}
|
||||||
c = syntax;
|
c = syntax;
|
||||||
|
|
||||||
/* mindestens ein Ziel (Ziellose Zauber werden nicht
|
/* mindestens ein Ziel (Ziellose Zauber werden nicht
|
||||||
|
|
Loading…
Reference in a new issue