From 68e3488bb72c0957c2e6f9483405eb424fa0cc33 Mon Sep 17 00:00:00 2001 From: Dan Date: Tue, 26 Nov 2024 22:09:11 -0800 Subject: [PATCH] minor fix --- VortexEngine/src/Menus/MenuList/PatternSelect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);