Codechange: use EnumBitSet for CargoTypes

This commit is contained in:
Peter Nelson
2025-03-26 18:48:53 +00:00
committed by Peter Nelson
parent 962a550d1b
commit c45aa3c9b6
55 changed files with 278 additions and 265 deletions
+1 -1
View File
@@ -100,7 +100,7 @@ Station::~Station()
if (a->targetairport == this->index) a->targetairport = StationID::Invalid();
}
for (CargoType cargo = 0; cargo < NUM_CARGO; ++cargo) {
for (CargoType cargo{}; cargo < NUM_CARGO; ++cargo) {
LinkGraph *lg = LinkGraph::GetIfValid(this->goods[cargo].link_graph);
if (lg == nullptr) continue;