diff --git a/src/libs/antares/study/parts/common/cluster_list.cpp b/src/libs/antares/study/parts/common/cluster_list.cpp index 1458cd9750..0ba7cf2afb 100644 --- a/src/libs/antares/study/parts/common/cluster_list.cpp +++ b/src/libs/antares/study/parts/common/cluster_list.cpp @@ -177,6 +177,7 @@ void ClusterList::storeTimeseriesNumbers(Solver::IResultWriter::Ptr wr each([&](const Cluster& cluster) { path.clear() << "ts-numbers" << SEP << typeID() << SEP << cluster.parentArea->id << SEP << cluster.id() << ".txt"; + ts_content.clear(); // We must clear ts_content here, since saveToBuffer does not do it. cluster.series->timeseriesNumbers.saveToBuffer(ts_content, 0, true, predicate, true); writer->addEntryFromBuffer(path.c_str(), ts_content); });