1
0
Fork 0

Fix: Industry tiles and houses could accept incorrect cargo types.

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

This was missed by #12053.
pull/12062/head
Peter Nelson 2024-02-11 16:58:42 +00:00
parent d02b1547f6
commit 19e9b32c36
No known key found for this signature in database
GPG Key ID: 8EF8F0A467DF75ED
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->cargo_acceptance[i] = 0;
}
housespec->accepts_cargo_label[i] = CT_INVALID;
}
break;
}
@ -3342,6 +3343,7 @@ static ChangeInfoResult IndustrytilesChangeInfo(uint indtid, int numinfo, int pr
tsp->accepts_cargo[i] = INVALID_CARGO;
tsp->acceptance[i] = 0;
}
tsp->accepts_cargo_label[i] = CT_INVALID;
}
break;
}