From f99b30ccc7797a5741604508e85fe74afdbd2b7f Mon Sep 17 00:00:00 2001 From: Florian OMNES Date: Thu, 19 Dec 2024 15:15:34 +0100 Subject: [PATCH] Fix segfault caused by invalid index [ANT-2582] --- .../constraints/NbDispUnitsMinBoundSinceMinUpTime.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/solver/optimisation/constraints/NbDispUnitsMinBoundSinceMinUpTime.cpp b/src/solver/optimisation/constraints/NbDispUnitsMinBoundSinceMinUpTime.cpp index 294a274fec..aea397138e 100644 --- a/src/solver/optimisation/constraints/NbDispUnitsMinBoundSinceMinUpTime.cpp +++ b/src/solver/optimisation/constraints/NbDispUnitsMinBoundSinceMinUpTime.cpp @@ -31,7 +31,7 @@ void NbDispUnitsMinBoundSinceMinUpTime::add(int pays, int index, int pdt) builder.greaterThan(); if (builder.NumberOfVariables() > 1) { - data.CorrespondanceCntNativesCntOptim[pays] + data.CorrespondanceCntNativesCntOptim[pdt] .NumeroDeContrainteDesContraintesDeDureeMinDeMarche[cluster] = builder.data.nombreDeContraintes;