1
0
Fork 0

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

pull/13170/head
Peter Nelson 2024-12-12 19:33:55 +00:00 committed by GitHub
parent e30c5e6b9e
commit eacec144b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

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.