From 35ff6adfd54af20d65130d8fb387a195a56c7b86 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Mon, 16 Sep 2019 23:05:51 +0200 Subject: HDB: Fix some more uninitialized variables --- engines/hdb/ai-init.cpp | 26 ++++++++++++++++++++++++++ engines/hdb/window.cpp | 2 ++ 2 files changed, 28 insertions(+) (limited to 'engines') 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() { -- cgit v1.2.3