mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-23 20:24:12 +01:00
Fix f8bdc1e612: Empty first parameter of EncodedString was skipped. (#14273)
This would place the remaining parameters one position too early.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user