[Scummvm-git-logs] scummvm master -> dba2e12baae5b63ab2b28a7cef3860430e4ca5bd

neuromancer noreply at scummvm.org
Sun Nov 23 11:14:46 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:
dba2e12baa PRIVATE: Clear diary page exits


Commit: dba2e12baae5b63ab2b28a7cef3860430e4ca5bd
    https://github.com/scummvm/scummvm/commit/dba2e12baae5b63ab2b28a7cef3860430e4ca5bd
Author: sluicebox (22204938+sluicebox at users.noreply.github.com)
Date: 2025-11-23T12:14:42+01:00

Commit Message:
PRIVATE: Clear diary page exits

Fixes diary page exits staying active during game

Bug ##16341

Changed paths:
    engines/private/private.cpp
    engines/private/private.h


diff --git a/engines/private/private.cpp b/engines/private/private.cpp
index 6db85c1e491..3c00ff9bce8 100644
--- a/engines/private/private.cpp
+++ b/engines/private/private.cpp
@@ -529,6 +529,8 @@ void PrivateEngine::clearAreas() {
 	_dossierPrevSuspectMask.clear();
 	_dossierNextSheetMask.clear();
 	_dossierPrevSheetMask.clear();
+	_diaryNextPageExit.clear();
+	_diaryPrevPageExit.clear();
 
 	for (uint d = 0 ; d < 3; d++) {
 		if (_safeDigitArea[d].surf) {
diff --git a/engines/private/private.h b/engines/private/private.h
index 78a99c05c6a..24ecc4eddb2 100644
--- a/engines/private/private.h
+++ b/engines/private/private.h
@@ -82,6 +82,12 @@ typedef struct ExitInfo {
 	Common::String nextSetting;
 	Common::Rect   rect;
 	Common::String cursor;
+
+	void clear() {
+		nextSetting.clear();
+		rect.setEmpty();
+		cursor.clear();
+	}
 } ExitInfo;
 
 typedef struct MaskInfo {




More information about the Scummvm-git-logs mailing list