diff --git a/source/game.cpp b/source/game.cpp index f285947..74d012a 100644 --- a/source/game.cpp +++ b/source/game.cpp @@ -92,8 +92,11 @@ Game::Game(int player_id, int current_stage, bool demo) Game::~Game() { // Guarda las puntuaciones en un fichero - auto manager = std::make_unique(&options.game.hi_score_table); - manager->saveToFile(asset_->get("score.bin")); + if (!demo_.enabled) + { + auto manager = std::make_unique(&options.game.hi_score_table); + manager->saveToFile(asset_->get("score.bin")); + } #ifdef RECORDING saveDemoFile(asset->get("demo1.bin")); #endif