forked from github/server
fix a crash when missing a token
This commit is contained in:
parent
dc7cbd886c
commit
1556c07787
|
@ -1,3 +1,3 @@
|
||||||
#define VERSION_MAJOR 3
|
#define VERSION_MAJOR 3
|
||||||
#define VERSION_MINOR 3
|
#define VERSION_MINOR 3
|
||||||
#define VERSION_BUILD 688
|
#define VERSION_BUILD 689
|
||||||
|
|
|
@ -2579,7 +2579,7 @@ static castorder *cast_cmd(unit * u, order * ord)
|
||||||
}
|
}
|
||||||
s = getstrtoken();
|
s = getstrtoken();
|
||||||
}
|
}
|
||||||
if (!s[0] || strlen(s) == 0) {
|
if (!s || !s[0] || strlen(s) == 0) {
|
||||||
/* Fehler "Es wurde kein Zauber angegeben" */
|
/* Fehler "Es wurde kein Zauber angegeben" */
|
||||||
cmistake(u, ord, 172, MSG_MAGIC);
|
cmistake(u, ord, 172, MSG_MAGIC);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue