From d2eac946f111e177189b46ba5650ba9a68c398bf Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Thu, 9 Apr 2015 17:16:34 +0200 Subject: [PATCH] ALLY command crashes when incomplete. --- src/laws.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/laws.c b/src/laws.c index e3701c66b..8caf8eb60 100755 --- a/src/laws.c +++ b/src/laws.c @@ -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);