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
352d947770
commit
58547969f8
|
@ -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