ALLY command crashes when incomplete.

This commit is contained in:
Enno Rehling 2015-04-09 17:16:34 +02:00
parent f320a50853
commit d2eac946f1

View file

@ -1321,7 +1321,7 @@ int ally_cmd(unit * u, struct order *ord)
s = gettoken(token, sizeof(token)); s = gettoken(token, sizeof(token));
if (!s[0]) if (s && !s[0])
keyword = P_ANY; keyword = P_ANY;
else else
keyword = findparam(s, u->faction->locale); keyword = findparam(s, u->faction->locale);