[Scummvm-git-logs] scummvm master -> 80875aab4e6d8352ccdf701997731126677b6975

aquadran noreply at scummvm.org
Sun Sep 13 06:05:57 UTC 2026


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:
80875aab4e WINTERMUTE: Fixed/WA for bug #16298


Commit: 80875aab4e6d8352ccdf701997731126677b6975
    https://github.com/scummvm/scummvm/commit/80875aab4e6d8352ccdf701997731126677b6975
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2026-09-13T08:05:44+02:00

Commit Message:
WINTERMUTE: Fixed/WA for bug #16298

Changed paths:
    engines/wintermute/ui/ui_object.cpp


diff --git a/engines/wintermute/ui/ui_object.cpp b/engines/wintermute/ui/ui_object.cpp
index 42c24d20c4e..80a873b4624 100644
--- a/engines/wintermute/ui/ui_object.cpp
+++ b/engines/wintermute/ui/ui_object.cpp
@@ -97,6 +97,14 @@ UIObject::~UIObject() {
 
 //////////////////////////////////////////////////////////////////////////
 void UIObject::setText(const char *text) {
+	if (text == nullptr) {
+		// W/A for null text from diary text in 5MA game.
+		// Font drawing width is not the same as in original engine,
+		// this makes last page of diary empty and make text null from scripts.
+		if (_text)
+			_text[0] = '\0';
+		return;
+	}
 	if (_text) {
 		delete[] _text;
 	}




More information about the Scummvm-git-logs mailing list