From c375d4a43cd21f90274f9112905d0bb7a7bf4ee9 Mon Sep 17 00:00:00 2001 From: Justin <52604018+hiimjustin000@users.noreply.github.com> Date: Sat, 12 Oct 2024 22:54:50 -0400 Subject: [PATCH] crash fix i think (#6) * crash fix i think * brug --- mod.json | 2 +- src/SettingsLayer.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/mod.json b/mod.json index fc6e238..10f4214 100644 --- a/mod.json +++ b/mod.json @@ -1,5 +1,5 @@ { - "geode": "3.2.0", + "geode": "3.8.1", "gd": { "win": "2.206", "android": "2.206", diff --git a/src/SettingsLayer.cpp b/src/SettingsLayer.cpp index 3d7d469..713e624 100644 --- a/src/SettingsLayer.cpp +++ b/src/SettingsLayer.cpp @@ -158,6 +158,9 @@ void SettingCell::onFMODDebug(CCObject* sender) { void SettingCell::onSongSelect(CCObject* sender) { auto mol = MoreOptionsLayer::create(); mol->onSongBrowser(sender); + if (auto songBrowser = getChildOfType(CCScene::get(), 0)) { + if (songBrowser->m_delegate == mol) songBrowser->m_delegate = nullptr; + } } void SettingCell::onCheckboxToggled(CCObject* sender) {