1
0
Fork 0

Fix f8bdc1e612: Empty first parameter of EncodedString was skipped. (#14273)

This would place the remaining parameters one position too early.
pull/14274/head
Peter Nelson 2025-05-17 23:55:48 +01:00 committed by GitHub
parent 617169c1c9
commit 940a7127f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1004,7 +1004,7 @@ static void DecodeEncodedString(StringConsumer &consumer, bool game_script, Stri
std::vector<StringParameter> sub_args;
StringIndexInTab id(consumer.ReadIntegerBase<uint32_t>(16));
if (consumer.AnyBytesLeft() && !consumer.ReadUtf8If(SCC_RECORD_SEPARATOR)) {
if (consumer.AnyBytesLeft() && !consumer.PeekUtf8If(SCC_RECORD_SEPARATOR)) {
consumer.SkipAll();
builder += "(invalid SCC_ENCODED)";
return;