[Scummvm-git-logs] scummvm master -> 58b9f9e8d24180f1aefc22dfc38e3dbd0819ce4e

kelmer44 noreply at scummvm.org
Mon Nov 16 20:03:56 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:
58b9f9e8d2 IGOR: Initialize all engine members in the constructor


Commit: 58b9f9e8d24180f1aefc22dfc38e3dbd0819ce4e
    https://github.com/scummvm/scummvm/commit/58b9f9e8d24180f1aefc22dfc38e3dbd0819ce4e
Author: kelmer (kelmer at gmail.com)
Date: 2026-11-16T21:03:47+01:00

Commit Message:
IGOR: Initialize all engine members in the constructor

Changed paths:
    engines/igor/igor.cpp


diff --git a/engines/igor/igor.cpp b/engines/igor/igor.cpp
index 16d35f2e094..a932da829b1 100644
--- a/engines/igor/igor.cpp
+++ b/engines/igor/igor.cpp
@@ -111,6 +111,19 @@ IgorEngine::IgorEngine(OSystem *syst, const IgorGameDescription *gameDesc) : Eng
 	_part85CurrentTalkingActor = 0;
 	_part85WaterSoundPlaying = false;
 	_partMargaretRoomAnimCounter = 0;
+
+	// members not covered by restart(), which only runs once the engine starts
+	_optionsControlRow = 0;
+	_eventQuitGame = false;
+	_scrollInventoryStartY = _scrollInventoryEndY = _scrollInventoryDy = 0;
+	_part32DeclinationIndex = _part32AscensionIndex = 0;
+	_part32LineRow = _part32Blink = _part32Result = 0;
+	_part32Done = false;
+	memset(&_roomWalkBounds, 0, sizeof(_roomWalkBounds));
+	memset(&_roomDataOffsets, 0, sizeof(_roomDataOffsets));
+
+	// give every remaining member its initial value before the engine runs
+	restart();
 }
 
 IgorEngine::~IgorEngine() {




More information about the Scummvm-git-logs mailing list