From e347c72f12448597cd830bec70c1e9cb25d2a999 Mon Sep 17 00:00:00 2001 From: Benau Date: Wed, 2 Jun 2021 10:07:34 +0800 Subject: [PATCH] Fix uninitialized m_focus_on_cancel --- src/states_screens/dialogs/message_dialog.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/states_screens/dialogs/message_dialog.cpp b/src/states_screens/dialogs/message_dialog.cpp index b8360a8612c..65417423156 100644 --- a/src/states_screens/dialogs/message_dialog.cpp +++ b/src/states_screens/dialogs/message_dialog.cpp @@ -65,6 +65,7 @@ MessageDialog::MessageDialog(const irr::core::stringw &msg, bool from_queue) m_type = MessageDialog::MESSAGE_DIALOG_OK; m_listener = NULL; m_own_listener = false; + m_focus_on_cancel = false; if (!from_queue) doInit(false); } // MessageDialog(stringw)