From 0d99b6c71cd096599b4805d230483f3e4e958af1 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 24 May 2009 20:29:04 +0000 Subject: (svn r16421) -Codechange: do not unnecessarily remove constness or unnecessarily add it. --- src/station_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/station_cmd.cpp') diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 5e66232dc..85fdde83f 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -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; } -- cgit v1.2.3-70-g09d2