[Scummvm-git-logs] scummvm master -> d3fe276d6f52a11cf24a69a48d61c51f3f48ec7d
Marisa-Chan
noreply at scummvm.org
Wed Mar 11 07:05: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:
d3fe276d6f GAMOS: Fix for Uninitialized values CID 1645159, 1645150, 1645157
Commit: d3fe276d6f52a11cf24a69a48d61c51f3f48ec7d
https://github.com/scummvm/scummvm/commit/d3fe276d6f52a11cf24a69a48d61c51f3f48ec7d
Author: Marisa-Chan (thunder_8888 at mail.ru)
Date: 2026-03-11T14:05:41+07:00
Commit Message:
GAMOS: Fix for Uninitialized values CID 1645159, 1645150, 1645157
Changed paths:
engines/gamos/file.h
engines/gamos/gamos.cpp
engines/gamos/music.h
diff --git a/engines/gamos/file.h b/engines/gamos/file.h
index 9a81a3fb686..52a2108629c 100644
--- a/engines/gamos/file.h
+++ b/engines/gamos/file.h
@@ -73,10 +73,10 @@ public:
private:
- int32 _dirOffset;
+ int32 _dirOffset = 0;
- byte _dirCount;
- uint32 _dataOffset;
+ byte _dirCount = 0;
+ uint32 _dataOffset = 0;
Common::Array<GameFileDir> _directories;
diff --git a/engines/gamos/gamos.cpp b/engines/gamos/gamos.cpp
index 1ca13bde139..eec83f79876 100644
--- a/engines/gamos/gamos.cpp
+++ b/engines/gamos/gamos.cpp
@@ -47,7 +47,10 @@ GamosEngine::GamosEngine(OSystem *syst, const GamosGameDescription *gameDesc) :
_messageProc(this),
_vm(this, callbackVMCallDispatcher),
_txtInputVMAccess(_vm),
- _randomSource("gamos") {}
+ _randomSource("gamos") {
+ for(uint i = 0; i < 256; i++)
+ _txtInputObjects[i] = nullptr;
+}
GamosEngine::~GamosEngine() {
freeImages();
diff --git a/engines/gamos/music.h b/engines/gamos/music.h
index 24ad6370a26..3497c874c13 100644
--- a/engines/gamos/music.h
+++ b/engines/gamos/music.h
@@ -49,7 +49,7 @@ private:
uint32 _midiOp = 0; /* save midi event type between update cycles */
bool _midiMute = false;
- uint8 _volume;
+ uint8 _volume = 255;
public:
More information about the Scummvm-git-logs
mailing list