Fix ca1e34c: [Script] Wrong value printed for {RAW_STRING} (#11011)

This commit is contained in:
Loïc Guilloux 2023-06-15 00:07:11 +02:00 committed by GitHub
parent 864d3c9c16
commit 1cd49bf5e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,7 @@ void ScriptText::_GetEncodedText(std::back_insert_iterator<std::string> &output,
switch (cur_param.type) {
case StringParam::RAW_STRING:
if (!std::holds_alternative<std::string>(this->param[cur_idx])) throw Script_FatalError(fmt::format("{}: Parameter {} expects a raw string", name, param_count));
fmt::format_to(output, ":\"%s\"", std::get<std::string>(this->param[cur_idx++]));
fmt::format_to(output, ":\"{}\"", std::get<std::string>(this->param[cur_idx++]));
break;
case StringParam::STRING: {