diff --git a/VortexEngine/src/Menus/MenuList/PatternSelect.cpp b/VortexEngine/src/Menus/MenuList/PatternSelect.cpp index 8c17aaa4ff..3033ea4ad6 100644 --- a/VortexEngine/src/Menus/MenuList/PatternSelect.cpp +++ b/VortexEngine/src/Menus/MenuList/PatternSelect.cpp @@ -105,7 +105,7 @@ void PatternSelect::onLongClickM() { bool needsSave = false; Mode *cur = Modes::curMode(); - needsSave = !cur->equals(&m_previewMode); + needsSave = !cur || !cur->equals(&m_previewMode); if (needsSave) { // update the current mode with the new pattern Modes::updateCurMode(&m_previewMode);