From f33f9b39208142c8b5e876dafe60a99ca3ea9b7a Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 9 Jan 2012 22:20:44 +0000 Subject: (svn r23782) -Fix [FS#4965]: crash due to genders used for station name in hangar string of Italian translation --- src/strings.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/strings.cpp b/src/strings.cpp index cbc47676b..663f3c953 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -1240,8 +1240,9 @@ static char *FormatString(char *buff, const char *str_arg, StringParameters *arg case SCC_DEPOT_NAME: { // {DEPOT} VehicleType vt = (VehicleType)args->GetInt32(SCC_DEPOT_NAME); if (vt == VEH_AIRCRAFT) { - int64 args_array[] = {args->GetInt32()}; - StringParameters tmp_params(args_array); + uint64 args_array[] = {args->GetInt32()}; + WChar types_array[] = {SCC_STATION_NAME}; + StringParameters tmp_params(args_array, 1, types_array); buff = GetStringWithArgs(buff, STR_FORMAT_DEPOT_NAME_AIRCRAFT, &tmp_params, last); break; } -- cgit v1.2.3-70-g09d2