diff --git a/src/solver/variable/include/antares/solver/variable/area.hxx b/src/solver/variable/include/antares/solver/variable/area.hxx index cb270c5709..4af927f626 100644 --- a/src/solver/variable/include/antares/solver/variable/area.hxx +++ b/src/solver/variable/include/antares/solver/variable/area.hxx @@ -378,7 +378,7 @@ void Areas::hourForEachArea(State& state, uint numSpace) state.initReserveParticipationIndexMaps(); - for (auto cluster: area.thermal.list.all()) + for (const auto& cluster : area.thermal.list.each_enabled()) { // Intiializing the state for the current thermal cluster state.initFromThermalClusterIndex(cluster->areaWideIndex);