Codechange: Use EnumBitSet for GoodsEntry status. (#13899)

This commit is contained in:
Peter Nelson
2025-03-26 21:22:33 +00:00
committed by GitHub
parent 5331389765
commit 325f7f9767
10 changed files with 52 additions and 45 deletions

View File

@@ -151,7 +151,7 @@ NodeID LinkGraph::AddNode(const Station *st)
const GoodsEntry &good = st->goods[this->cargo];
NodeID new_node = this->Size();
this->nodes.emplace_back(st->xy, st->index, HasBit(good.status, GoodsEntry::GES_ACCEPTANCE));
this->nodes.emplace_back(st->xy, st->index, good.status.Test(GoodsEntry::State::Acceptance));
return new_node;
}