forked from github/server
fix crash when a GIVE order has no arguments.
This commit is contained in:
parent
a12958dac0
commit
3a1e4ab7f5
|
@ -634,7 +634,7 @@ int give_control_cmd(unit * u, order * ord)
|
|||
getunit(r, u->faction, &u2);
|
||||
|
||||
s = getstrtoken();
|
||||
if (isparam(s, u->faction->locale, P_CONTROL)) {
|
||||
if (s && isparam(s, u->faction->locale, P_CONTROL)) {
|
||||
message *msg = 0;
|
||||
|
||||
if (!can_give_to(u, u2)) {
|
||||
|
|
Loading…
Reference in New Issue