diff --git a/source/game.cpp b/source/game.cpp index f7a27f4..06e2a8d 100644 --- a/source/game.cpp +++ b/source/game.cpp @@ -337,16 +337,17 @@ bool Game::changeRoom(std::string file) setScoreBoardColor(); if (roomTracker->addRoom(file)) - { // Incrementa el contador de habitaciones visitadas + { + // Incrementa el contador de habitaciones visitadas board.rooms++; + + // Actualiza las estadisticas + stats->addVisit(room->getName()); } // Pasa la nueva habitación al jugador player->setRoom(room); - // Actualiza las estadisticas - stats->addVisit(room->getName()); - return true; }