missing null-check before isparam

This commit is contained in:
Enno Rehling 2016-09-01 21:57:50 +02:00
parent 3a719226a2
commit ed2c4ec56a
1 changed files with 1 additions and 1 deletions

View File

@ -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);
return 0;
}