summaryrefslogtreecommitdiff
path: root/src/strings.cpp
diff options
context:
space:
mode:
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;
}