[Scummvm-git-logs] scummvm master -> 5e0fa2a71c631f204e6ce0a8f106c33b76cd2a09

Strangerke Strangerke at scummvm.org
Mon Sep 9 23:18:38 CEST 2019


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
5e0fa2a71c HDB: Fix more uninitialized variables in Gfx and Window


Commit: 5e0fa2a71c631f204e6ce0a8f106c33b76cd2a09
    https://github.com/scummvm/scummvm/commit/5e0fa2a71c631f204e6ce0a8f106c33b76cd2a09
Author: Strangerke (strangerke at scummvm.org)
Date: 2019-09-09T23:16:26+02:00

Commit Message:
HDB: Fix more uninitialized variables in Gfx and Window

Changed paths:
    engines/hdb/gfx.cpp
    engines/hdb/window.cpp


diff --git a/engines/hdb/gfx.cpp b/engines/hdb/gfx.cpp
index 40a64a2..ef3b1fe 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() {
diff --git a/engines/hdb/window.cpp b/engines/hdb/window.cpp
index c072e05..2b576b0 100644
--- a/engines/hdb/window.cpp
+++ b/engines/hdb/window.cpp
@@ -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() {





More information about the Scummvm-git-logs mailing list