summaryrefslogtreecommitdiff
path: root/src/newgrf_airport.h
diff options
context:
space:
mode:
authoradf88 <adf88@openttd.org>2017-08-31 06:55:38 +0000
committeradf88 <adf88@openttd.org>2017-08-31 06:55:38 +0000
commit6dec88930653a84856c75060a0793c843e6a4beb (patch)
tree0063bfe9c6042d8fcd6a056355ea6199cd0541f8 /src/newgrf_airport.h
parentb56453f93ba5aff4760e4c54a17af9028a57f77d (diff)
downloadopenttd-6dec88930653a84856c75060a0793c843e6a4beb.tar.xz
(svn r27908) -Codechange: Mark airport tile tables and FTAs "const" to be sure that they are really constant
Diffstat (limited to 'src/newgrf_airport.h')
-rw-r--r--src/newgrf_airport.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_airport.h b/src/newgrf_airport.h
index 5a917c6bd..867362e9a 100644
--- a/src/newgrf_airport.h
+++ b/src/newgrf_airport.h
@@ -100,7 +100,7 @@ struct HangarTileTable {
struct AirportSpec {
const struct AirportFTAClass *fsm; ///< the finite statemachine for the default airports
const AirportTileTable * const *table; ///< list of the tiles composing the airport
- Direction *rotation; ///< the rotation of each tiletable
+ const Direction *rotation; ///< the rotation of each tiletable
byte num_table; ///< number of elements in the table
const HangarTileTable *depot_table; ///< gives the position of the depots on the airports
byte nof_depots; ///< the number of hangar tiles in this airport
@@ -133,7 +133,7 @@ struct AirportSpec {
return (byte)(this - specs);
}
- static AirportSpec dummy; ///< The dummy airport.
+ static const AirportSpec dummy; ///< The dummy airport.
private:
static AirportSpec specs[NUM_AIRPORTS]; ///< Specs of the airports.