Avoid unnecessary GoodsEntryData creation

This commit is contained in:
Jonathan G Rennison
2024-06-30 13:12:53 +01:00
parent f1504dcc34
commit f8b008cd28
3 changed files with 7 additions and 1 deletions

View File

@@ -636,7 +636,7 @@ bool VehicleCargoList::Stage(bool accepted, StationID current_station, StationID
CargoPacketList transfer_deliver;
std::vector<CargoPacket *> keep;
const FlowStatMap &flows = ge->CreateData().flows;
const FlowStatMap &flows = ge->ConstFlows();
bool force_keep = (order_flags & OUFB_NO_UNLOAD) != 0;
bool force_unload = (order_flags & OUFB_UNLOAD) != 0;