We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b20a9c commit a22f9ffCopy full SHA for a22f9ff
src/ui/SongListLayer.cpp
@@ -93,7 +93,7 @@ void SongListLayer::customSetup() {
93
scrollLayer->scrollToTop();
94
95
m_listLayer->addChild(scrollLayer);
96
- GameManager::get()->m_menuLayer->addChild(this);
+ if (this && GameManager::get()->m_menuLayer) GameManager::get()->m_menuLayer->addChild(this);
97
}
98
99
void SongListLayer::showLayer(const bool instant) {
0 commit comments