aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorNipun Garg2019-07-04 01:47:34 +0530
committerEugene Sandulenko2019-09-03 17:17:10 +0200
commit372cf8b734411f045c826e092b304f47800e9cfb (patch)
treee92e4b29cfd555e1bdbf469095f670f0a293a0db /engines
parent1e5e8ed4ec734d9a3c9ed2e696a765b7d4e08898 (diff)
downloadscummvm-rg350-372cf8b734411f045c826e092b304f47800e9cfb.tar.gz
scummvm-rg350-372cf8b734411f045c826e092b304f47800e9cfb.tar.bz2
scummvm-rg350-372cf8b734411f045c826e092b304f47800e9cfb.zip
HDB: Fix uninitized frame counters
Diffstat (limited to 'engines')
-rw-r--r--engines/hdb/ai-init.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/hdb/ai-init.cpp b/engines/hdb/ai-init.cpp
index 1c22013549..426f549704 100644
--- a/engines/hdb/ai-init.cpp
+++ b/engines/hdb/ai-init.cpp
@@ -816,6 +816,12 @@ void AI::restartSystem() {
memset(_slugLeftGfx, NULL, kMaxAnimFrames * sizeof(Tile *));
memset(_slugRightGfx, NULL, kMaxAnimFrames * sizeof(Tile *));
+ _horrible1Frames = _horrible2Frames = _horrible3Frames = _horrible4Frames = 0;
+ _plummetFrames = _dyingFrames = 0;
+ _pushdownFrames = _pushupFrames = _pushleftFrames = _pushrightFrames = 0;
+ _stunDownFrames = _stunUpFrames = _stunLeftFrames = _stunRightFrames = 0;
+ _slugDownFrames = _slugUpFrames = _slugLeftFrames = _slugRightFrames = 0;
+
if (_clubDownFrames) {
_clubDownFrames = 3;
_clubUpFrames = 3;