diff options
author | tron <tron@openttd.org> | 2005-03-03 19:54:46 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-03-03 19:54:46 +0000 |
commit | 0c3927ce4a45ca8c446083b6101ebaf005b09748 (patch) | |
tree | f0ea77598e2b4e1426e582ae234be1e66acb7623 /station_cmd.c | |
parent | ae4995c671f09185ccf5aa3e85653b2ac2d4583b (diff) | |
download | openttd-0c3927ce4a45ca8c446083b6101ebaf005b09748.tar.xz |
(svn r1921) -Fix: Out of bounds array access which caused oil rigs to accept other cargo types besides passengers and mail
Diffstat (limited to 'station_cmd.c')
-rw-r--r-- | station_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/station_cmd.c b/station_cmd.c index addb90a3e..b31069bf3 100644 --- a/station_cmd.c +++ b/station_cmd.c @@ -60,8 +60,8 @@ MemoryPool _roadstop_pool = { "RoadStop", ROADSTOP_POOL_MAX_BLOCKS, ROADSTOP_POO // FIXME -- need to be embedded into Airport variable. Is dynamically // deducteable from graphics-tile array, so will not be needed -const byte _airport_size_x[5] = {4, 6, 1, 6, 7 }; -const byte _airport_size_y[5] = {3, 6, 1, 6, 7 }; +const byte _airport_size_x[] = {4, 6, 1, 6, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1}; +const byte _airport_size_y[] = {3, 6, 1, 6, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1}; void ShowAircraftDepotWindow(uint tile); extern void UpdateAirplanesOnNewStation(Station *st); |