From 0711c8dadaa949435d4d6f66bd1fce16dc085ac0 Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Sun, 5 Jan 2025 07:29:33 +0100 Subject: [PATCH] fix: al fer el init de stage no es buidava el vector i cada volta afegia mes stages --- source/stage.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/stage.cpp b/source/stage.cpp index 4654e60..89ef987 100644 --- a/source/stage.cpp +++ b/source/stage.cpp @@ -17,6 +17,7 @@ namespace Stage // Inicializa las variables del namespace Stage void init() { + stages.clear(); stages.emplace_back(Stage(200, 7 + (4 * 1), 7 + (4 * 3))); stages.emplace_back(Stage(300, 7 + (4 * 2), 7 + (4 * 4))); stages.emplace_back(Stage(600, 7 + (4 * 3), 7 + (4 * 5)));