aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorStrangerke2019-09-16 23:05:51 +0200
committerStrangerke2019-09-16 23:06:17 +0200
commit35ff6adfd54af20d65130d8fb387a195a56c7b86 (patch)
tree181b5888d09150b710be762075a1ec4d2369811f /engines
parent9b2cc0d597c880ae9090ca593f72c7c44352db26 (diff)
downloadscummvm-rg350-35ff6adfd54af20d65130d8fb387a195a56c7b86.tar.gz
scummvm-rg350-35ff6adfd54af20d65130d8fb387a195a56c7b86.tar.bz2
scummvm-rg350-35ff6adfd54af20d65130d8fb387a195a56c7b86.zip
HDB: Fix some more uninitialized variables
Diffstat (limited to 'engines')
-rw-r--r--engines/hdb/ai-init.cpp26
-rw-r--r--engines/hdb/window.cpp2
2 files changed, 28 insertions, 0 deletions
diff --git a/engines/hdb/ai-init.cpp b/engines/hdb/ai-init.cpp
index e2e42cc04c..124b653ef4 100644
--- a/engines/hdb/ai-init.cpp
+++ b/engines/hdb/ai-init.cpp
@@ -1020,6 +1020,32 @@ AI::AI() {
_cineBlitList[i] = nullptr;
_cineFreeList[i] = nullptr;
}
+ _targetDoor2S = 0;
+ _targetDoor2Nv = 0;
+ _targetDoor2Pv = 0;
+ _targetDoor2Sv = 0;
+ _target2DoorN = 0;
+ _target2DoorP = 0;
+ _target2DoorS = 0;
+ _target2DoorNv = 0;
+ _target2DoorPv = 0;
+ _target2DoorSv = 0;
+ _target3DoorN = 0;
+ _target3DoorP = 0;
+ _target3DoorS = 0;
+ _target3DoorNv = 0;
+ _target3DoorPv = 0;
+ _target3DoorSv = 0;
+ _targetBridgeU = 0;
+ _targetBridgeD = 0;
+ _targetBridgeL = 0;
+ _targetBridgeR = 0;
+ _targetBridgeMidLR = 0;
+ _targetBridgeMidUD = 0;
+ _touchplateOn = 0;
+ _touchplateOff = 0;
+ _templeTouchpOn = 0;
+ _templeTouchpOff = 0;
}
AI::~AI() {
diff --git a/engines/hdb/window.cpp b/engines/hdb/window.cpp
index 729c464638..c47b9a52a1 100644
--- a/engines/hdb/window.cpp
+++ b/engines/hdb/window.cpp
@@ -119,6 +119,8 @@ Window::Window() {
_gfxTitleM = nullptr;
_gfxTitleR = nullptr;
_gGfxTL = nullptr;
+ _invItemSpaceX = 0;
+ _invItemSpaceY = 0;
}
Window::~Window() {