diff options
author | Strangerke | 2019-09-09 23:16:26 +0200 |
---|---|---|
committer | Strangerke | 2019-09-09 23:16:26 +0200 |
commit | 5e0fa2a71c631f204e6ce0a8f106c33b76cd2a09 (patch) | |
tree | 3b91060bdd22ce2f25cbfcf30c68e24c08626e3c /engines/hdb/gfx.cpp | |
parent | 0e04da2cc818bbc8c4b0ebae5ac336bf100b6b55 (diff) | |
download | scummvm-rg350-5e0fa2a71c631f204e6ce0a8f106c33b76cd2a09.tar.gz scummvm-rg350-5e0fa2a71c631f204e6ce0a8f106c33b76cd2a09.tar.bz2 scummvm-rg350-5e0fa2a71c631f204e6ce0a8f106c33b76cd2a09.zip |
HDB: Fix more uninitialized variables in Gfx and Window
Diffstat (limited to 'engines/hdb/gfx.cpp')
-rw-r--r-- | engines/hdb/gfx.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/hdb/gfx.cpp b/engines/hdb/gfx.cpp index 40a64a21eb..ef3b1fe2c5 100644 --- a/engines/hdb/gfx.cpp +++ b/engines/hdb/gfx.cpp @@ -85,6 +85,17 @@ Gfx::Gfx() { _eRight = 0; _eTop = 0; _eBottom = 0; + _currentSky = 0; + for (int i = 0; i < kNum3DStars; ++i) { + _stars3D[i].x = 0; + _stars3D[i].y = 0; + _stars3D[i].speed = 0; + _stars3D[i].color = 0; + _stars3DSlow[i].x = 0; + _stars3DSlow[i].y = 0; + _stars3DSlow[i].speed = 0; + _stars3DSlow[i].color = 0; + } } Gfx::~Gfx() { |