diff --git a/VortexEngine/src/Menus/MenuList/PatternSelect.cpp b/VortexEngine/src/Menus/MenuList/PatternSelect.cpp index 6f52fb9c78..9f4e1582af 100644 --- a/VortexEngine/src/Menus/MenuList/PatternSelect.cpp +++ b/VortexEngine/src/Menus/MenuList/PatternSelect.cpp @@ -105,7 +105,7 @@ void PatternSelect::onLongClick() { 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);