diff --git a/source/stats.cpp b/source/stats.cpp index 80c034c..ca195ee 100644 --- a/source/stats.cpp +++ b/source/stats.cpp @@ -19,12 +19,12 @@ Stats::Stats(std::string file, std::string buffer, options_t *options) // Destructor Stats::~Stats() { - // Calcula cual es la habitación con más muertes - checkWorstNightmare(); - // Vuelca los datos del buffer en la lista de estadisticas updateListFromBuffer(); + // Calcula cual es la habitación con más muertes + checkWorstNightmare(); + // Guarda las estadísticas saveToServer(); saveToFile(bufferPath, bufferList);