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

pull/603/head
Loïc Guilloux 12 months ago committed by GitHub
parent 864d3c9c16
commit 1cd49bf5e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save