changeset 4354 | 684ab9249dae |
parent 4346 | 3f00094f2670 |
child 4416 | e0e9a72882d0 |
--- a/station_gui.c Tue Aug 22 20:39:18 2006 +0000 +++ b/station_gui.c Tue Aug 22 20:41:26 2006 +0000 @@ -180,7 +180,7 @@ if (!(sl->flags & SL_REBUILD)) return; /* Create array for sorting */ - station_sort = malloc(GetStationPoolSize() * sizeof(station_sort[0])); + station_sort = malloc(GetStationArraySize() * sizeof(station_sort[0])); if (station_sort == NULL) error("Could not allocate memory for the station-sorting-list");