[Scummvm-git-logs] scummvm master -> cf5c2d7af338a10ed6496a265f0ce847388edc21
bluegr
noreply at scummvm.org
Sat Nov 28 20:42:10 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:
cf5c2d7af3 NGI: Initialize potentially uninitialized variables
Commit: cf5c2d7af338a10ed6496a265f0ce847388edc21
https://github.com/scummvm/scummvm/commit/cf5c2d7af338a10ed6496a265f0ce847388edc21
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2026-11-28T22:25:50+02:00
Commit Message:
NGI: Initialize potentially uninitialized variables
Changed paths:
engines/ngi/xmlproject.cpp
diff --git a/engines/ngi/xmlproject.cpp b/engines/ngi/xmlproject.cpp
index 8fcd60aa6ed..dbad065982a 100644
--- a/engines/ngi/xmlproject.cpp
+++ b/engines/ngi/xmlproject.cpp
@@ -1053,7 +1053,7 @@ private:
}
if (parent->name == "EXITMANAGER") {
node->layout = _XMLkeys;
- int16 id;
+ int16 id = 0;
if (node->name == "EXIT" && readId(node->values.getValOrDefault("vis_dst"), id)) {
if (PictureObject *object = _scene.findPictureObjectById(id, 0)) {
Exit exit;
@@ -1069,7 +1069,7 @@ private:
if (parent->name == "INTERACTIONS") {
node->layout = _XMLkeys;
_interaction = nullptr;
- int16 sceneId;
+ int16 sceneId = 0;
if (node->name != "INTERACTION" || !readId(node->values.getValOrDefault("scene"), sceneId) || sceneId != _scene._sceneId)
return true;
Common::ScopedPtr<Interact> action(new Interact());
More information about the Scummvm-git-logs
mailing list