From f09a77d03bf1cc89ad55ef6a15ba75145f40ffac Mon Sep 17 00:00:00 2001 From: Thomas Ubensee <34603111+tomuben@users.noreply.github.com> Date: Tue, 15 Oct 2024 08:22:26 -0300 Subject: [PATCH] Update exaudfclient/base/javacontainer/script_options/parser_ctpg_script_importer.cc Co-authored-by: Torsten Kilias --- .../javacontainer/script_options/parser_ctpg_script_importer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exaudfclient/base/javacontainer/script_options/parser_ctpg_script_importer.cc b/exaudfclient/base/javacontainer/script_options/parser_ctpg_script_importer.cc index 8f0504e8..226e2359 100644 --- a/exaudfclient/base/javacontainer/script_options/parser_ctpg_script_importer.cc +++ b/exaudfclient/base/javacontainer/script_options/parser_ctpg_script_importer.cc @@ -72,7 +72,7 @@ void ScriptImporter::importScript(std::string & scriptCode, ReplacedScripts replacedScript = {.script = std::move(importScriptCodeStr), .origPos = option.idx_in_source, .origLen = option.size }; replacedScripts.push_back(std::move(replacedScript)); } - //No replace the imported script bodies from end to start. Doing it in forward order would invalidate the offsets of later import scripts. + //Now replace the imported script bodies from end to start. Doing it in forward order would invalidate the offsets of later import scripts. for (auto optionIt = replacedScripts.rbegin(); optionIt != replacedScripts.rend(); optionIt++) { scriptCode.replace(optionIt->origPos, optionIt->origLen, optionIt->script); }