From 72c55128d2129f824a60a35fb5aa601409af4a3d Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Fri, 26 Apr 2024 21:56:30 +0100 Subject: [PATCH] Codechange: Remove write-only spec_id from RoadStopSpec. (#12582) Comment is incorrect about its value too. --- src/newgrf.cpp | 1 - src/newgrf_roadstop.h | 1 - 2 files changed, 2 deletions(-) diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 68396cdbca..0b8628f370 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -4846,7 +4846,6 @@ static ChangeInfoResult RoadStopChangeInfo(uint id, int numinfo, int prop, ByteR uint32_t classid = buf->ReadDWord(); rs->cls_id = RoadStopClass::Allocate(BSWAP32(classid)); - rs->spec_id = id + i; break; } diff --git a/src/newgrf_roadstop.h b/src/newgrf_roadstop.h index 780afd5d86..4a6980883d 100644 --- a/src/newgrf_roadstop.h +++ b/src/newgrf_roadstop.h @@ -127,7 +127,6 @@ struct RoadStopSpec { */ GRFFilePropsBase grf_prop; RoadStopClassID cls_id; ///< The class to which this spec belongs. - int spec_id; ///< The ID of this spec inside the class. StringID name; ///< Name of this stop RoadStopAvailabilityType stop_type = ROADSTOPTYPE_ALL;