Fix 952d111: Houses and industry tiles could accept incorrect cargo. (#12547)

Default cargo label was not cleared (set to CT_INVALID) when using older 3-slot acceptance properties for house and industry tiles.

Missed in #12053 and #12062.
This commit is contained in:
Peter Nelson 2024-04-21 19:46:05 +01:00 committed by GitHub
parent 3b01d31280
commit d465257dd0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -2570,6 +2570,7 @@ static ChangeInfoResult TownHouseChangeInfo(uint hid, int numinfo, int prop, Byt
} else {
housespec->accepts_cargo[j] = cargo;
}
housespec->accepts_cargo_label[j] = CT_INVALID;
}
break;
}
@ -3306,6 +3307,7 @@ static ChangeInfoResult IndustrytilesChangeInfo(uint indtid, int numinfo, int pr
uint16_t acctp = buf->ReadWord();
tsp->accepts_cargo[prop - 0x0A] = GetCargoTranslation(GB(acctp, 0, 8), _cur.grffile);
tsp->acceptance[prop - 0x0A] = Clamp(GB(acctp, 8, 8), 0, 16);
tsp->accepts_cargo_label[prop - 0x0A] = CT_INVALID;
break;
}