summaryrefslogtreecommitdiff
path: root/src/disaster_cmd.cpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-02-22 14:17:07 +0000
committeryexo <yexo@openttd.org>2010-02-22 14:17:07 +0000
commit698737f485cfbdd1605faecd50395bb67f7dac75 (patch)
treeb79303520896365e70a9aa3224a5f1c6a14b5aba /src/disaster_cmd.cpp
parent7ca4c31cf558ff29b3cbe14cd348bcf649445dfc (diff)
downloadopenttd-698737f485cfbdd1605faecd50395bb67f7dac75.tar.xz
(svn r19198) -Codechange: store the size of stations in savegames
Diffstat (limited to 'src/disaster_cmd.cpp')
-rw-r--r--src/disaster_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/disaster_cmd.cpp b/src/disaster_cmd.cpp
index 142ec01d7..6ff1ed1ba 100644
--- a/src/disaster_cmd.cpp
+++ b/src/disaster_cmd.cpp
@@ -680,8 +680,8 @@ static void Disaster_Zeppeliner_Init()
Station *st;
FOR_ALL_STATIONS(st) {
- if (st->airport_tile != INVALID_TILE && (st->airport_type == AT_SMALL || st->airport_type == AT_LARGE)) {
- x = (TileX(st->airport_tile) + 2) * TILE_SIZE;
+ if (st->airport.tile != INVALID_TILE && (st->airport_type == AT_SMALL || st->airport_type == AT_LARGE)) {
+ x = (TileX(st->airport.tile) + 2) * TILE_SIZE;
break;
}
}