From eacec144b03c84a5bf35b598325a100288ecc2a2 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Thu, 12 Dec 2024 19:33:55 +0000 Subject: [PATCH] Fix 56510b5d7b: CargoArray does need to be initialised... (#13168) --- src/linkgraph/refresh.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/linkgraph/refresh.h b/src/linkgraph/refresh.h index f69805bf00..f58733c72e 100644 --- a/src/linkgraph/refresh.h +++ b/src/linkgraph/refresh.h @@ -78,7 +78,7 @@ protected: typedef std::set 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.