summaryrefslogtreecommitdiff
path: root/src/strings.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2012-01-09 22:20:44 +0000
committerrubidium <rubidium@openttd.org>2012-01-09 22:20:44 +0000
commitf33f9b39208142c8b5e876dafe60a99ca3ea9b7a (patch)
tree6a29bd7ab08442ee02f70f8e42ac2f0031acb14a /src/strings.cpp
parent2728cb21a94c122565de6ccfacd762eaadaefc32 (diff)
downloadopenttd-f33f9b39208142c8b5e876dafe60a99ca3ea9b7a.tar.xz
(svn r23782) -Fix [FS#4965]: crash due to genders used for station name in hangar string of Italian translation
Diffstat (limited to 'src/strings.cpp')
-rw-r--r--src/strings.cpp5
1 files changed, 3 insertions, 2 deletions
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;
}