diff --git a/src/solver/simulation/include/antares/solver/simulation/solver_utils.h b/src/solver/simulation/include/antares/solver/simulation/solver_utils.h index 1e7ee2ffb8..f7129c6a35 100644 --- a/src/solver/simulation/include/antares/solver/simulation/solver_utils.h +++ b/src/solver/simulation/include/antares/solver/simulation/solver_utils.h @@ -138,7 +138,7 @@ class yearRandomNumbers // Thermal noises for (uint a = 0; a != pNbAreas; a++) { - pThermalNoisesByArea[a].assign(pNbClustersByArea[a], 0); + pThermalNoisesByArea[a].assign(pThermalNoisesByArea[a].size(), 0); } // General