summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
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.cpp
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.cpp')
-rw-r--r--src/newgrf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 2f02b049b..4759c8a19 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -3750,7 +3750,7 @@ static ChangeInfoResult AirportChangeInfo(uint airport, int numinfo, int prop, B
const AirportTileTable *copy_from;
try {
for (byte j = 0; j < as->num_table; j++) {
- as->rotation[j] = (Direction)buf->ReadByte();
+ const_cast<Direction&>(as->rotation[j]) = (Direction)buf->ReadByte();
for (int k = 0;; k++) {
att[k].ti.x = buf->ReadByte(); // Offsets from northermost tile
att[k].ti.y = buf->ReadByte();