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;