From 960b840291c1c633c2e906ff584b03dd63e172c9 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Mon, 1 Sep 2025 18:52:55 +0100 Subject: [PATCH] Fix 6d6e64b1f0: Road stop properties 0x13/0x14 were not skipped properly. (#14567) These properties where changed to be variable length for consistency, but ignoring them treated them as fixed length. --- src/newgrf/newgrf_act0_roadstops.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/newgrf/newgrf_act0_roadstops.cpp b/src/newgrf/newgrf_act0_roadstops.cpp index f260b48289..7c54d12cc9 100644 --- a/src/newgrf/newgrf_act0_roadstops.cpp +++ b/src/newgrf/newgrf_act0_roadstops.cpp @@ -51,9 +51,7 @@ static ChangeInfoResult IgnoreRoadStopProperty(uint prop, ByteReader &buf) case 0x13: case 0x14: - buf.ReadWord(); - buf.ReadWord(); - buf.ReadWord(); + buf.Skip(buf.ReadExtendedByte()); break; case 0x16: // Badge list