diff --git a/src/libs/antares/study/scenario-builder/ThermalTSNumberData.cpp b/src/libs/antares/study/scenario-builder/ThermalTSNumberData.cpp index 46de006aa8..b3bbba7ae4 100644 --- a/src/libs/antares/study/scenario-builder/ThermalTSNumberData.cpp +++ b/src/libs/antares/study/scenario-builder/ThermalTSNumberData.cpp @@ -98,8 +98,8 @@ bool thermalTSNumberData::apply(Study& study) for (auto& cluster: area.thermal.list.each_enabled()) { - assert(cluster->enabledIndex < pTSNumberRules.width); - const auto& col = pTSNumberRules[cluster->enabledIndex]; + assert(cluster->areaWideIndex < pTSNumberRules.width); + const auto& col = pTSNumberRules[cluster->areaWideIndex]; uint tsGenCount = cluster->tsGenBehavior == LocalTSGenerationBehavior::forceNoGen ? cluster->series.timeSeries.width