Use CargoID instead of CargoSpec in town_production_cargoes

This commit is contained in:
Jonathan G Rennison
2024-02-19 04:02:24 +00:00
parent 19e4895ffd
commit 6ab1f9a416
3 changed files with 4 additions and 5 deletions

View File

@@ -197,7 +197,7 @@ struct CargoSpec {
static IterateWrapper Iterate(size_t from = 0) { return IterateWrapper(from); }
/** List of cargo specs for each Town Product Effect. */
static std::array<std::vector<const CargoSpec *>, NUM_TPE> town_production_cargoes;
static std::array<std::vector<CargoID>, NUM_TPE> town_production_cargoes;
/** Mask of cargo IDs for each Town Product Effect. */
static std::array<CargoTypes, NUM_TPE> town_production_cargo_mask;