[Scummvm-git-logs] scummvm master -> d0547e1a23d4fc7dbf1aa20a9b8623d46b2931f4

dckone noreply at scummvm.org
Wed Mar 4 01:10:35 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:
d0547e1a23 ALG: add remaining missing initializers. CID 1609033, CID 1609028


Commit: d0547e1a23d4fc7dbf1aa20a9b8623d46b2931f4
    https://github.com/scummvm/scummvm/commit/d0547e1a23d4fc7dbf1aa20a9b8623d46b2931f4
Author: loki (loki at localhost)
Date: 2026-03-04T09:10:31+08:00

Commit Message:
ALG: add remaining missing initializers. CID 1609033, CID 1609028

Changed paths:
    engines/alg/alg.h
    engines/alg/game.h


diff --git a/engines/alg/alg.h b/engines/alg/alg.h
index b2967943cfb..20592c48344 100644
--- a/engines/alg/alg.h
+++ b/engines/alg/alg.h
@@ -59,8 +59,8 @@ public:
 
 private:
 	const AlgGameDescription *_gameDescription;
-	Game *_game;
-	GUI::Debugger *_debugger;
+	Game *_game = nullptr;
+	GUI::Debugger *_debugger = nullptr;
 	bool _useSingleSpeedVideos = false;
 };
 
diff --git a/engines/alg/game.h b/engines/alg/game.h
index 9c703524ff1..180d1447240 100644
--- a/engines/alg/game.h
+++ b/engines/alg/game.h
@@ -48,24 +48,24 @@ public:
 	bool _debug_unlimitedAmmo = false;
 
 protected:
-	AlgEngine *_vm;
-	AlgVideoDecoder *_videoDecoder;
-	SceneInfo *_sceneInfo;
-	Common::RandomSource *_rnd;
+	AlgEngine *_vm = nullptr;
+	AlgVideoDecoder *_videoDecoder = nullptr;
+	SceneInfo *_sceneInfo = nullptr;
+	Common::RandomSource *_rnd = nullptr;
 
 	Common::File _libFile;
 	Common::HashMap<Common::String, uint32> _libFileEntries;
 
-	uint8 *_palette;
-	bool _paletteDirty;
+	uint8 *_palette  = nullptr;
+	bool _paletteDirty = false;
 
-	Graphics::Surface *_background;
-	Graphics::Surface *_screen;
+	Graphics::Surface *_background = nullptr;
+	Graphics::Surface *_screen = nullptr;
 
 	Audio::SoundHandle _sfxAudioHandle;
 
-	Zone *_menuZone;
-	Zone *_subMenuZone;
+	Zone *_menuZone = nullptr;
+	Zone *_subMenuZone = nullptr;
 
 	bool _leftDown = false;
 	bool _rightDown = false;
@@ -115,7 +115,7 @@ protected:
 
 	bool _buttonDown = false;
 	bool _fired = 0;
-	uint32 _currentFrame;
+	uint32 _currentFrame = 0;
 	bool _gameInProgress = false;
 	bool _hadPause = false;
 	bool _inMenu = false;
@@ -123,8 +123,8 @@ protected:
 	bool _sceneSkipped = false;
 	uint32 _videoFrameSkip = 3;
 	uint32 _nextFrameTime = 0;
-	uint16 _videoPosX;
-	uint16 _videoPosY;
+	uint16 _videoPosX = 0;
+	uint16 _videoPosY = 0;
 
 	Common::String _curScene;
 	Common::String _startScene;




More information about the Scummvm-git-logs mailing list