forked from github/server
fix a crash when testing for the RESHOW ANY command.
E2 crashed when no parameter was given.
This commit is contained in:
parent
6c2429cccb
commit
79c8c4a034
|
@ -2586,7 +2586,7 @@ int reshow_cmd(unit * u, struct order *ord)
|
|||
init_order(ord);
|
||||
s = getstrtoken();
|
||||
|
||||
if (isparam(s, u->faction->locale, P_ANY)) {
|
||||
if (s && isparam(s, u->faction->locale, P_ANY)) {
|
||||
p = getparam(u->faction->locale);
|
||||
s = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue