mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-03 17:56:27 +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:
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
Block a user