arreglos en stats.cpp

This commit is contained in:
2026-04-03 08:29:06 +02:00
parent dc1470ec0e
commit 8dcc1d282a
5 changed files with 46 additions and 64 deletions

View File

@@ -914,14 +914,8 @@ void Game::checkRestoringJail(float delta_time) {
}
}
// Inicializa el diccionario de las estadísticas
// Inicializa las estadísticas
void Game::initStats() { // NOLINT(readability-convert-member-functions-to-static)
auto list = Resource::Cache::get()->getRooms();
for (const auto& room : list) {
stats_->addDictionary(room.room->number, room.room->name);
}
stats_->init();
}