diff options
author | Eugene Sandulenko | 2019-07-17 19:40:49 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:22 +0200 |
commit | 0c71ae212105ccbc59045cf319d5ca64b882ae2d (patch) | |
tree | 1497e7977b09898cf80e2306f8dc1e9596c9ea94 | |
parent | be1fcc2fa87f555840acfa2395071c8ccc9b61ef (diff) | |
download | scummvm-rg350-0c71ae212105ccbc59045cf319d5ca64b882ae2d.tar.gz scummvm-rg350-0c71ae212105ccbc59045cf319d5ca64b882ae2d.tar.bz2 scummvm-rg350-0c71ae212105ccbc59045cf319d5ca64b882ae2d.zip |
HDB: Fix uninitialised variables
-rw-r--r-- | engines/hdb/ai-init.cpp | 5 | ||||
-rw-r--r-- | engines/hdb/hdb.cpp | 2 | ||||
-rw-r--r-- | engines/hdb/map.cpp | 1 | ||||
-rw-r--r-- | engines/hdb/menu.cpp | 2 |
4 files changed, 10 insertions, 0 deletions
diff --git a/engines/hdb/ai-init.cpp b/engines/hdb/ai-init.cpp index 95d4359f73..dbdd24429f 100644 --- a/engines/hdb/ai-init.cpp +++ b/engines/hdb/ai-init.cpp @@ -907,6 +907,11 @@ AI::AI() { _stunAnim = 0; _stunTimer = g_system->getMillis(); + + _clubDownFrames = 0; + _clubUpFrames = 0; + _clubLeftFrames = 0; + _clubRightFrames = 0; } AI::~AI() { diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp index 94abb7bd7d..e7c808a3f4 100644 --- a/engines/hdb/hdb.cpp +++ b/engines/hdb/hdb.cpp @@ -64,6 +64,8 @@ HDBGame::HDBGame(OSystem *syst, const ADGameDescription *gameDesc) : Engine(syst _timePlayed = _timeSlice = _prevTimeSlice = _timeSeconds = _tiempo = 0; + _progressActive = false; + _monkeystone7 = STARS_MONKEYSTONE_7_FAKE; _monkeystone14 = STARS_MONKEYSTONE_14_FAKE; _monkeystone21 = STARS_MONKEYSTONE_21_FAKE; diff --git a/engines/hdb/map.cpp b/engines/hdb/map.cpp index 7846575f0d..195b673e31 100644 --- a/engines/hdb/map.cpp +++ b/engines/hdb/map.cpp @@ -794,6 +794,7 @@ bool Map::load(Common::SeekableReadStream *stream) { } g_hdb->_ai->initAllEnts(); + g_hdb->stopProgress(); _mapLoaded = true; diff --git a/engines/hdb/menu.cpp b/engines/hdb/menu.cpp index ade6156248..654f51d318 100644 --- a/engines/hdb/menu.cpp +++ b/engines/hdb/menu.cpp @@ -40,6 +40,8 @@ bool Menu::init() { _sayHDB = false; _menuKey = 0; + _nextScreen = 0; + _nebulaY = 0; // Used as a flag _fStars[0].y = 0; // Used as a flag |