Fix: La pantalla de Game Over no mostraba Tu peor pesadilla

This commit is contained in:
2022-11-22 13:34:33 +01:00
parent 10c29eb547
commit e6fb412c4d

View File

@@ -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);