Codechange: generify GetRemainingParameters to allow custom offsets

This commit is contained in:
Rubidium
2023-06-17 23:17:04 +02:00
committed by rubidium42
parent 9215e36300
commit e404ba0631
2 changed files with 17 additions and 5 deletions

View File

@@ -1036,7 +1036,7 @@ static void FormatString(StringBuilder &builder, const char *str_arg, StringPara
_scan_for_gender_data = true;
std::string buffer;
StringBuilder tmp_builder(buffer);
StringParameters tmp_params(args.GetPointerToOffset(offset), args.num_param - offset, nullptr);
StringParameters tmp_params = args.GetRemainingParameters(offset);
FormatString(tmp_builder, input, tmp_params);
_scan_for_gender_data = old_sgd;