From 1938a73c90db32244162a927e51c1903fed779f9 Mon Sep 17 00:00:00 2001 From: truelight Date: Thu, 3 Feb 2005 17:22:35 +0000 Subject: (svn r1776) -Add: Dynamic stations. You can now have up to 64k of stations --- station_gui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'station_gui.c') diff --git a/station_gui.c b/station_gui.c index d7316d429..fe57f4dbe 100644 --- a/station_gui.c +++ b/station_gui.c @@ -84,7 +84,7 @@ static void GlobalSortStationList(void) *i = 0; /* Create array for sorting */ - _station_sort = realloc(_station_sort, _stations_size * sizeof(_station_sort[0])); + _station_sort = realloc(_station_sort, GetStationPoolSize() * sizeof(_station_sort[0])); if (_station_sort == NULL) error("Could not allocate memory for the station-sorting-list"); @@ -318,7 +318,7 @@ static void DrawStationViewWindow(Window *w) byte *b; - station_id = (byte)w->window_number; + station_id = (uint16)w->window_number; st = GetStation(w->window_number); -- cgit v1.2.3-70-g09d2