fix a crash when testing for the RESHOW ANY command.

E2 crashed when no parameter was given.
This commit is contained in:
Enno Rehling 2014-10-18 21:36:46 +02:00
parent 6c2429cccb
commit 79c8c4a034
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}