Change: [NewGRF] Treat house max year 0xFFFF as MAX_YEAR. (#12740)

(cherry picked from commit 96fc367bcf)
This commit is contained in:
Peter Nelson 2024-06-01 12:54:49 +01:00 committed by Jonathan G Rennison
parent 1154fff48a
commit 1e55fd4667

View File

@ -2618,6 +2618,7 @@ static ChangeInfoResult TownHouseChangeInfo(uint hid, int numinfo, int prop, con
case 0x22: // long maximum year case 0x22: // long maximum year
housespec->max_year = buf->ReadWord(); housespec->max_year = buf->ReadWord();
if (housespec->max_year == UINT16_MAX) housespec->max_year = CalTime::MAX_YEAR;
break; break;
case 0x23: { // variable length cargo types accepted case 0x23: { // variable length cargo types accepted