JA VA! Nomes s'havia de fer les coses be i no ser un ansias

This commit is contained in:
2025-02-22 00:30:32 +01:00
parent f6098a479b
commit e361d295c1
39 changed files with 1053 additions and 1098 deletions

View File

@@ -2,11 +2,11 @@
#include <fstream> // Para basic_ostream, basic_ifstream, basic_istream, ope...
#include <sstream> // Para basic_stringstream
#include "utils.h" // Para op_stats_t, options_t
#include "options.h"
// Constructor
Stats::Stats(std::string file, std::string buffer, options_t *options)
Stats::Stats(std::string file, std::string buffer)
{
this->options = options;
bufferPath = buffer;
filePath = file;
bufferList.clear();
@@ -183,7 +183,7 @@ void Stats::checkWorstNightmare()
if (item.died > deaths)
{
deaths = item.died;
options->stats.worstNightmare = item.name;
options.stats.worstNightmare = item.name;
}
}
}