[Scummvm-git-logs] scummvm master -> 95787613fa2391dd6d00ccf73d2407ed735930ae

neuromancer noreply at scummvm.org
Sun Sep 29 07:46:23 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:
95787613fa FREESCAPE: avoid uninitialized local variables in drawRiddle


Commit: 95787613fa2391dd6d00ccf73d2407ed735930ae
    https://github.com/scummvm/scummvm/commit/95787613fa2391dd6d00ccf73d2407ed735930ae
Author: neuromancer (gustavo.grieco at gmail.com)
Date: 2024-09-29T09:40:59+02:00

Commit Message:
FREESCAPE: avoid uninitialized local variables in drawRiddle

Changed paths:
    engines/freescape/games/castle/castle.cpp


diff --git a/engines/freescape/games/castle/castle.cpp b/engines/freescape/games/castle/castle.cpp
index 18b388f452e..4e3830ce964 100644
--- a/engines/freescape/games/castle/castle.cpp
+++ b/engines/freescape/games/castle/castle.cpp
@@ -784,7 +784,8 @@ void CastleEngine::drawFullscreenRiddleAndWait(uint16 riddle) {
 }
 
 void CastleEngine::drawRiddle(uint16 riddle, uint32 front, uint32 back, Graphics::Surface *surface) {
-	int x, y;
+	int x = 0;
+	int y = 0;
 	int maxWidth = 136;
 
 	if (isDOS()) {




More information about the Scummvm-git-logs mailing list