From 940a7127f8f38f6ed22eab2a319c1351d20500b1 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Sat, 17 May 2025 23:55:48 +0100 Subject: [PATCH] Fix f8bdc1e612: Empty first parameter of EncodedString was skipped. (#14273) This would place the remaining parameters one position too early. --- src/strings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/strings.cpp b/src/strings.cpp index f6df675b28..c7bb90a05a 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -1004,7 +1004,7 @@ static void DecodeEncodedString(StringConsumer &consumer, bool game_script, Stri std::vector sub_args; StringIndexInTab id(consumer.ReadIntegerBase(16)); - if (consumer.AnyBytesLeft() && !consumer.ReadUtf8If(SCC_RECORD_SEPARATOR)) { + if (consumer.AnyBytesLeft() && !consumer.PeekUtf8If(SCC_RECORD_SEPARATOR)) { consumer.SkipAll(); builder += "(invalid SCC_ENCODED)"; return;