Codechange: No longer advance parent offset in StringParameters parent mode

Add method to manually advance offset
This commit is contained in:
Jonathan G Rennison
2024-01-04 00:25:07 +00:00
committed by Peter Nelson
parent a3576e48c1
commit e2a79f0f32
2 changed files with 13 additions and 8 deletions

View File

@@ -1140,6 +1140,7 @@ static void FormatString(StringBuilder &builder, const char *str_arg, StringPara
} else {
StringParameters sub_args(args, size);
GetStringWithArgs(builder, string_id, sub_args, next_substr_case_index, game_script);
args.AdvanceOffset(size);
}
next_substr_case_index = 0;
break;