mirror of https://github.com/OpenTTD/OpenTTD
Fix f8bdc1e612: Empty first parameter of EncodedString was skipped. (#14273)
This would place the remaining parameters one position too early.pull/14274/head
parent
617169c1c9
commit
940a7127f8
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue