diff options
author | Strangerke | 2019-09-06 22:08:12 +0200 |
---|---|---|
committer | Strangerke | 2019-09-06 22:08:12 +0200 |
commit | 44de7e8d5e36119f7a1359d55ff15c7b2f5bd529 (patch) | |
tree | 525f2b31f457f22d9c0128ba80ecebc7ded1ddd6 | |
parent | bfb1d6d059ccedaae91fd13f38095642b3da9b8d (diff) | |
download | scummvm-rg350-44de7e8d5e36119f7a1359d55ff15c7b2f5bd529.tar.gz scummvm-rg350-44de7e8d5e36119f7a1359d55ff15c7b2f5bd529.tar.bz2 scummvm-rg350-44de7e8d5e36119f7a1359d55ff15c7b2f5bd529.zip |
HDB: Fix uninitialized variables in gfx
-rw-r--r-- | engines/hdb/gfx.cpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/engines/hdb/gfx.cpp b/engines/hdb/gfx.cpp index d7bb470db8..b4f7d22795 100644 --- a/engines/hdb/gfx.cpp +++ b/engines/hdb/gfx.cpp @@ -53,6 +53,38 @@ Gfx::Gfx() { memset(&_fadeInfo, 0, sizeof(_fadeInfo)); memset(&_snowInfo, 0, sizeof(_snowInfo)); memset(&_skyTiles, 0, sizeof(_skyTiles)); + + _tileSkyStars = 0; + _tileSkyStarsLeft = 0; + _tileSkyClouds = 0; + for (int i = 0; i < 4; ++i) { + _starField[i] = nullptr; + _mousePointer[2 * i] = nullptr; + _mousePointer[(2 * i) + 1] = nullptr; + } + + _snowflake = nullptr; + _skyClouds = nullptr; + _starsInfo.gfx[0] = nullptr; + _starsInfo.gfx[1] = nullptr; + _starsInfo.timer = 0; + _starsInfo.anim = 0; + _starsInfo.radius = 0; + _starsInfo.angleSpeed = 0; + _starsInfo.totalTime = 0; + _cursorX = 0; + _cursorY = 0; + _showCursor = false; + _fontHeader.type = 0; + _fontHeader.numChars = 0; + _fontHeader.height = 0; + _fontHeader.kerning = 0; + _fontHeader.leading = 0; + _fontGfx = 0; + _eLeft = 0; + _eRight = 0; + _eTop = 0; + _eBottom = 0; } Gfx::~Gfx() { |