Fix 56510b5d7b: CargoArray does need to be initialised... (#13168)

This commit is contained in:
2024-12-12 19:33:55 +00:00
committed by GitHub
parent e30c5e6b9e
commit eacec144b0

View File

@@ -78,7 +78,7 @@ protected:
typedef std::set<Hop> HopSet;
Vehicle *vehicle; ///< Vehicle for which the links should be refreshed.
CargoArray capacities; ///< Current added capacities per cargo ID in the consist.
CargoArray capacities{}; ///< Current added capacities per cargo ID in the consist.
RefitList refit_capacities; ///< Current state of capacity remaining from previous refits versus overall capacity per vehicle in the consist.
HopSet *seen_hops; ///< Hops already seen. If the same hop is seen twice we stop the algorithm. This is shared between all Refreshers of the same run.
CargoID cargo; ///< Cargo given in last refit order.