Fix narrowing conversion warning in FormatString

This commit is contained in:
Jonathan G Rennison
2023-11-09 19:41:06 +00:00
parent c4f7794597
commit c31a8971f2

View File

@@ -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) {