Skip to content
Permalink
Browse files

HDB: Fix more uninitialized variables in Gfx and Window

  • Loading branch information...
Strangerke committed Sep 9, 2019
1 parent 0e04da2 commit 5e0fa2a71c631f204e6ce0a8f106c33b76cd2a09
Showing with 27 additions and 0 deletions.
  1. +11 −0 engines/hdb/gfx.cpp
  2. +16 −0 engines/hdb/window.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() {
@@ -103,6 +103,22 @@ Window::Window() {
_gfxInfobar = nullptr;
_gfxDarken = nullptr;
_infobarDimmed = 0;
_invItemSpace = 0;
_dialogDelay = 0;
_numMsgQueue = 0;
_gfxTL = nullptr;
_gfxTM = nullptr;
_gfxTR = nullptr;
_gfxL = nullptr;
_gfxM = nullptr;
_gfxR = nullptr;
_gfxBL = nullptr;
_gfxBM = nullptr;
_gfxBR = nullptr;
_gfxTitleL = nullptr;
_gfxTitleM = nullptr;
_gfxTitleR = nullptr;
_gGfxTL = nullptr;
}

Window::~Window() {

0 comments on commit 5e0fa2a

Please sign in to comment.
You can’t perform that action at this time.