Fix 0858377: [Script] Don't output parameters more than once

This commit is contained in:
glx22
2024-02-29 01:15:06 +01:00
committed by Loïc Guilloux
parent ce3d0097f6
commit ae27ce12a7
2 changed files with 17 additions and 12 deletions

View File

@@ -165,8 +165,9 @@ private:
* @param output The output to write the encoded text to.
* @param param_count The number of parameters that are consumed by the string.
* @param args The parameters to be consumed.
* @param first Whether it's the first call in the recursion.
*/
void _GetEncodedText(std::back_insert_iterator<std::string> &output, int &param_count, ParamSpan args);
void _GetEncodedText(std::back_insert_iterator<std::string> &output, int &param_count, ParamSpan args, bool first);
/**
* Set a parameter, where the value is the first item on the stack.