forked from github/server
missing null-check before isparam
This commit is contained in:
parent
3a719226a2
commit
ed2c4ec56a
|
@ -175,7 +175,7 @@ int destroy_cmd(unit * u, struct order *ord)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isparam(s, u->faction->locale, P_ROAD)) {
|
if (s && isparam(s, u->faction->locale, P_ROAD)) {
|
||||||
destroy_road(u, n, ord);
|
destroy_road(u, n, ord);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue