Fix: Industry tiles and houses could accept incorrect cargo types. (#12062)

Ensure the default label is cleared when NewGRFs set industry tile or house acceptance.

This was missed by #12053.
This commit is contained in:
Peter Nelson 2024-02-11 17:42:04 +00:00 committed by GitHub
parent d02b1547f6
commit 9ec9c8d8b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -2606,6 +2606,7 @@ static ChangeInfoResult TownHouseChangeInfo(uint hid, int numinfo, int prop, Byt
housespec->accepts_cargo[i] = INVALID_CARGO; housespec->accepts_cargo[i] = INVALID_CARGO;
housespec->cargo_acceptance[i] = 0; housespec->cargo_acceptance[i] = 0;
} }
housespec->accepts_cargo_label[i] = CT_INVALID;
} }
break; break;
} }
@ -3342,6 +3343,7 @@ static ChangeInfoResult IndustrytilesChangeInfo(uint indtid, int numinfo, int pr
tsp->accepts_cargo[i] = INVALID_CARGO; tsp->accepts_cargo[i] = INVALID_CARGO;
tsp->acceptance[i] = 0; tsp->acceptance[i] = 0;
} }
tsp->accepts_cargo_label[i] = CT_INVALID;
} }
break; break;
} }