mirror of https://github.com/OpenTTD/OpenTTD.git
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:
parent
d02b1547f6
commit
9ec9c8d8b5
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue