From 9ec9c8d8b5ed16a0a9db65b89c47898a9a0b6425 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Sun, 11 Feb 2024 17:42:04 +0000 Subject: [PATCH] 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. --- src/newgrf.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 676f63d6d1..97d9878335 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -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; }