station_gui.c
changeset 1272 d3e09adb7736
parent 1266 9dc5638fe8cc
child 1299 0a6510cc889b
--- a/station_gui.c	Wed Feb 02 20:36:04 2005 +0000
+++ b/station_gui.c	Thu Feb 03 17:22:35 2005 +0000
@@ -84,7 +84,7 @@
 		*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 @@
 	byte *b;
 
 
-	station_id = (byte)w->window_number;
+	station_id = (uint16)w->window_number;
 
 	st = GetStation(w->window_number);