[Scummvm-git-logs] scummvm master -> 16159a2afe14d0ecdfdf9547906a5801c2083cb6

bluegr noreply at scummvm.org
Wed Nov 25 01:44:12 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:
16159a2afe NGI: Initialize potentially uninitialized variables


Commit: 16159a2afe14d0ecdfdf9547906a5801c2083cb6
    https://github.com/scummvm/scummvm/commit/16159a2afe14d0ecdfdf9547906a5801c2083cb6
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2026-11-25T03:39:17+02:00

Commit Message:
NGI: Initialize potentially uninitialized variables

Fixes compilation with MSVC

Changed paths:
    engines/ngi/android.cpp


diff --git a/engines/ngi/android.cpp b/engines/ngi/android.cpp
index 091bb68be0d..7ffdf974242 100644
--- a/engines/ngi/android.cpp
+++ b/engines/ngi/android.cpp
@@ -458,7 +458,7 @@ private:
 	}
 
 	bool parserCallback_ENTRANCE(ParserNode *node) {
-		uint32 id, scene, queue;
+		uint32 id = 0, scene = 0, queue = 0;
 		if (!_project._objectIds.findId(node->values["id"], id) ||
 			!_project._objectIds.findId(node->values["scene"], scene) ||
 			!_project._objectIds.findId(node->values["queue"], queue))
@@ -782,8 +782,8 @@ private:
 
 	bool parserCallback_MOVEMENT(ParserNode *node) {
 		AniObject &object = *_scene._aniObjects.back();
-		int16 prevId;
-		int16 nextId;
+		int16 prevId = 0;
+		int16 nextId = 0;
 		if (!readId(node->values["nIdPrev"], prevId) || !readId(node->values["nIdNext"], nextId))
 			return parserError("Unknown statics ID in movement '" + node->values["id"] + "'");
 




More information about the Scummvm-git-logs mailing list