(svn r16421) -Codechange: do not unnecessarily remove constness or unnecessarily add it.
This commit is contained in:
@@ -1968,7 +1968,7 @@ static CommandCost RemoveAirport(Station *st, DoCommandFlag flags)
|
||||
FOR_ALL_VEHICLES(v) {
|
||||
if (!(v->type == VEH_AIRCRAFT && IsNormalAircraft(v))) continue;
|
||||
|
||||
Aircraft *a = (Aircraft *)v;
|
||||
const Aircraft *a = (const Aircraft *)v;
|
||||
if (a->targetairport == st->index && a->state != FLYING) return CMD_ERROR;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user