# HG changeset patch # User Peter Nelson # Date 2024-02-11 17:42:04 # Node ID cb3e748cfe2fb3a5666d806f7fc46663fdca80c6 # Parent c64e085ed5409808a6b7f5aa64898c9d47b25c82 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. diff --git a/src/newgrf.cpp b/src/newgrf.cpp --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -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; }