From 96fc367bcf1fb3e957b37f3a0aefeb10fbef9202 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Sat, 1 Jun 2024 12:54:49 +0100 Subject: [PATCH] Change: [NewGRF] Treat house max year 0xFFFF as MAX_YEAR. (#12740) --- src/newgrf.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 51514054fa..fee478d7aa 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -2594,6 +2594,7 @@ static ChangeInfoResult TownHouseChangeInfo(uint hid, int numinfo, int prop, Byt case 0x22: // long maximum year housespec->max_year = buf->ReadWord(); + if (housespec->max_year == UINT16_MAX) housespec->max_year = CalendarTime::MAX_YEAR; break; case 0x23: { // variable length cargo types accepted