Skip to content

Commit c375d4a

Browse files
crash fix i think (#6)
* crash fix i think * brug
1 parent 575d111 commit c375d4a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"geode": "3.2.0",
2+
"geode": "3.8.1",
33
"gd": {
44
"win": "2.206",
55
"android": "2.206",

src/SettingsLayer.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,9 @@ void SettingCell::onFMODDebug(CCObject* sender) {
158158
void SettingCell::onSongSelect(CCObject* sender) {
159159
auto mol = MoreOptionsLayer::create();
160160
mol->onSongBrowser(sender);
161+
if (auto songBrowser = getChildOfType<GJSongBrowser>(CCScene::get(), 0)) {
162+
if (songBrowser->m_delegate == mol) songBrowser->m_delegate = nullptr;
163+
}
161164
}
162165

163166
void SettingCell::onCheckboxToggled(CCObject* sender) {

0 commit comments

Comments
 (0)