From 0982dbf32932453f08ed5a849f38d83619958c54 Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 9 Jan 2012 22:20:44 +0000 Subject: [PATCH] (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(-) diff --git a/src/strings.cpp b/src/strings.cpp index cbc47676b7..663f3c9533 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; }