(svn r16421) -Codechange: do not unnecessarily remove constness or unnecessarily add it.

This commit is contained in:
rubidium
2009-05-24 20:29:04 +00:00
parent 49235963aa
commit c496a3e014
33 changed files with 108 additions and 109 deletions

View File

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