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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user