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
1 changed files with 1 additions and 1 deletions
|
@ -2586,7 +2586,7 @@ int reshow_cmd(unit * u, struct order *ord)
|
||||||
init_order(ord);
|
init_order(ord);
|
||||||
s = getstrtoken();
|
s = getstrtoken();
|
||||||
|
|
||||||
if (isparam(s, u->faction->locale, P_ANY)) {
|
if (s && isparam(s, u->faction->locale, P_ANY)) {
|
||||||
p = getparam(u->faction->locale);
|
p = getparam(u->faction->locale);
|
||||||
s = NULL;
|
s = NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue