aboutsummaryrefslogtreecommitdiff
path: root/game/menus/ButtonNextMainMenuSubScript.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'game/menus/ButtonNextMainMenuSubScript.cpp')
-rw-r--r--game/menus/ButtonNextMainMenuSubScript.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/game/menus/ButtonNextMainMenuSubScript.cpp b/game/menus/ButtonNextMainMenuSubScript.cpp
index e03a34a..631b4d3 100644
--- a/game/menus/ButtonNextMainMenuSubScript.cpp
+++ b/game/menus/ButtonNextMainMenuSubScript.cpp
@@ -1,4 +1,5 @@
#include "ButtonNextMainMenuSubScript.h"
+#include "ButtonReplaySubScript.h"
#include "MenusConfig.h"
#include "ValueBroker.h"
@@ -26,7 +27,8 @@ bool ButtonNextMainMenuSubScript::on_button_press(const ButtonPressEvent & e) {
for (AudioSource & audio : audios) {
audio.stop();
}
-
+
+ this->trigger_event<DeleteRecordingEvent>();
SaveManager & savemgr = this->get_save_manager();
ValueBroker<int> coins = savemgr.get<int>(TOTAL_COINS_RUN, 0);