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

This commit is contained in:
Peter Nelson 2024-06-01 12:54:49 +01:00 committed by GitHub
parent 3827229c74
commit 96fc367bcf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2594,6 +2594,7 @@ static ChangeInfoResult TownHouseChangeInfo(uint hid, int numinfo, int prop, Byt
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 = CalendarTime::MAX_YEAR;
break; break;
case 0x23: { // variable length cargo types accepted case 0x23: { // variable length cargo types accepted