diff -r 2b941f2c325c -r 684ab9249dae station_gui.c --- 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");