Changeset - r28733:cb3e748cfe2f
[Not reviewed]
master
0 1 0
Peter Nelson - 2 months ago 2024-02-11 17:42:04
peter1138@openttd.org
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.
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/newgrf.cpp
Show inline comments
 
@@ -2606,6 +2606,7 @@ static ChangeInfoResult TownHouseChangeI
 
						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 IndustrytilesCha
 
						tsp->accepts_cargo[i] = INVALID_CARGO;
 
						tsp->acceptance[i] = 0;
 
					}
 
					tsp->accepts_cargo_label[i] = CT_INVALID;
 
				}
 
				break;
 
			}
0 comments (0 inline, 0 general)