diff options
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r-- | src/station_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index e94da91da..ea89c45f9 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -3065,7 +3065,7 @@ static void SaveLoad_STNS(Station *st) if (st->num_specs != 0) { /* Allocate speclist memory when loading a game */ - if (st->speclist == NULL) CallocT(&st->speclist, st->num_specs); + if (st->speclist == NULL) st->speclist = CallocT<StationSpecList>(st->num_specs); for (i = 0; i < st->num_specs; i++) SlObject(&st->speclist[i], _station_speclist_desc); } } |