From 65938bd6c017f76918309b09b240e4c647a26dc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Omn=C3=A8s?= Date: Tue, 28 Jan 2025 12:49:56 +0100 Subject: [PATCH] Fix segfault on BP studies (#2598) --- .../antares/study/scenario-builder/ThermalTSNumberData.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libs/antares/study/scenario-builder/ThermalTSNumberData.cpp b/src/libs/antares/study/scenario-builder/ThermalTSNumberData.cpp index 73e094a9b3..b3bbba7ae4 100644 --- a/src/libs/antares/study/scenario-builder/ThermalTSNumberData.cpp +++ b/src/libs/antares/study/scenario-builder/ThermalTSNumberData.cpp @@ -38,8 +38,7 @@ bool thermalTSNumberData::reset(const Study& study) // solver or not. // WARNING: At this point, the variable pArea->thermal.list.size() // might not be valid (because not really initialized yet) - uint clusterCount = (study.usedByTheSolver) ? (pArea->thermal.list.enabledCount()) - : pArea->thermal.list.allClustersCount(); + uint clusterCount = pArea->thermal.list.allClustersCount(); // Resize pTSNumberRules.reset(clusterCount, nbYears);