[Scummvm-git-logs] scummvm master -> 3abb1edd52246792eb70599db15e69d56131802f
dreammaster
noreply at scummvm.org
Sat Jun 15 03:14:55 UTC 2024
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
3abb1edd52 BAGEL: Fix crash opening original restore dialog
Commit: 3abb1edd52246792eb70599db15e69d56131802f
https://github.com/scummvm/scummvm/commit/3abb1edd52246792eb70599db15e69d56131802f
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2024-06-14T20:14:48-07:00
Commit Message:
BAGEL: Fix crash opening original restore dialog
Changed paths:
engines/bagel/dialogs/restore_dialog.cpp
diff --git a/engines/bagel/dialogs/restore_dialog.cpp b/engines/bagel/dialogs/restore_dialog.cpp
index 31973c3c985..b20c801715f 100644
--- a/engines/bagel/dialogs/restore_dialog.cpp
+++ b/engines/bagel/dialogs/restore_dialog.cpp
@@ -147,8 +147,8 @@ ErrorCode CBagRestoreDialog::attach() {
}
// The list box must not be currently allocated
- if (_pListBox == nullptr)
- fatalError(ERR_UNKNOWN, "Unexpected null value found in _pListBox");
+ if (_pListBox != nullptr)
+ fatalError(ERR_UNKNOWN, "Unexpected value found in _pListBox");
// Create a list box for the user to choose the slot to save into
CBofRect cRect(LIST_X, LIST_Y, LIST_X + LIST_DX - 1, LIST_Y + LIST_DY - 1);
More information about the Scummvm-git-logs
mailing list