--- a/station_cmd.c Tue Aug 22 20:39:18 2006 +0000
+++ b/station_cmd.c Tue Aug 22 20:41:26 2006 +0000
@@ -2571,7 +2571,7 @@
if (_game_mode == GM_EDITOR) return;
i = _station_tick_ctr;
- if (++_station_tick_ctr == GetStationPoolSize()) _station_tick_ctr = 0;
+ if (++_station_tick_ctr == GetStationArraySize()) _station_tick_ctr = 0;
if (IsValidStationID(i)) StationHandleBigTick(GetStation(i));
@@ -3120,7 +3120,7 @@
}
/* This is to ensure all pointers are within the limits of _stations_size */
- if (_station_tick_ctr > GetStationPoolSize()) _station_tick_ctr = 0;
+ if (_station_tick_ctr > GetStationArraySize()) _station_tick_ctr = 0;
}
static void Save_ROADSTOP(void)