forked from github/server
ALLY command crashes when incomplete.
This commit is contained in:
parent
f320a50853
commit
d2eac946f1
1 changed files with 1 additions and 1 deletions
|
@ -1321,7 +1321,7 @@ int ally_cmd(unit * u, struct order *ord)
|
|||
|
||||
s = gettoken(token, sizeof(token));
|
||||
|
||||
if (!s[0])
|
||||
if (s && !s[0])
|
||||
keyword = P_ANY;
|
||||
else
|
||||
keyword = findparam(s, u->faction->locale);
|
||||
|
|
Loading…
Reference in a new issue