[Scummvm-git-logs] scummvm branch-3-0 -> 4dcc3a49138febf0e9a27c7d5517bfc0dd1c2a6b

dreammaster noreply at scummvm.org
Fri Dec 26 02:45:52 UTC 2025


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
4dcc3a4913 BAGEL: METAGAME: Fix crash on quit when save dialog is open


Commit: 4dcc3a49138febf0e9a27c7d5517bfc0dd1c2a6b
    https://github.com/scummvm/scummvm/commit/4dcc3a49138febf0e9a27c7d5517bfc0dd1c2a6b
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2025-12-26T13:45:46+11:00

Commit Message:
BAGEL: METAGAME: Fix crash on quit when save dialog is open

Changed paths:
    engines/bagel/mfc/dialog.cpp


diff --git a/engines/bagel/mfc/dialog.cpp b/engines/bagel/mfc/dialog.cpp
index 0b6346eba52..131c9f2c938 100644
--- a/engines/bagel/mfc/dialog.cpp
+++ b/engines/bagel/mfc/dialog.cpp
@@ -126,6 +126,9 @@ int CDialog::DoModal() {
 	if (oldFocus && AfxGetApp()->GetActiveWindow() == oldWin)
 		oldFocus->SetFocus();
 
+	if (_modalResult == DEFAULT_MODAL_RESULT)
+		_modalResult = -1;
+
 	return _modalResult;
 }
 




More information about the Scummvm-git-logs mailing list