diff --git a/src/libs/antares/study/scenario-builder/ThermalTSNumberData.cpp b/src/libs/antares/study/scenario-builder/ThermalTSNumberData.cpp index 100ab95f4f..46de006aa8 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);