Codechange: Use EnumBitSet for GoodsEntry status. (#13899)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user