From c31a8971f2e1abb40bf0e7d27a0192099c04dac9 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Thu, 9 Nov 2023 19:41:06 +0000 Subject: [PATCH] Fix narrowing conversion warning in FormatString --- src/strings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/strings.cpp b/src/strings.cpp index c4faaa1a37..4fd54a454f 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -1072,7 +1072,7 @@ uint ConvertDisplayQuantityToCargoQuantity(CargoID cargo, uint quantity) */ static char *FormatString(char *buff, const char *str_arg, StringParameters &args, const char *last, uint case_index, bool game_script, bool dry_run) { - uint orig_offset = args.GetOffset(); + size_t orig_offset = args.GetOffset(); /* When there is no array with types there is no need to do a dry run. */ if (!dry_run) {