aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorNipun Garg2019-07-22 00:24:00 +0530
committerEugene Sandulenko2019-09-03 17:17:26 +0200
commit599e144453af1aafc35e06973983345f05da8ae5 (patch)
treed51cdc6aaf9d3297d409767993998b3380b772b1 /engines
parent7d4c665176d08e3cd7badede8877c3f661f36aba (diff)
downloadscummvm-rg350-599e144453af1aafc35e06973983345f05da8ae5.tar.gz
scummvm-rg350-599e144453af1aafc35e06973983345f05da8ae5.tar.bz2
scummvm-rg350-599e144453af1aafc35e06973983345f05da8ae5.zip
HDB: Fix initialization warning
Diffstat (limited to 'engines')
-rw-r--r--engines/hdb/ai-funcs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/hdb/ai-funcs.cpp b/engines/hdb/ai-funcs.cpp
index 77485f7bf0..e383670e13 100644
--- a/engines/hdb/ai-funcs.cpp
+++ b/engines/hdb/ai-funcs.cpp
@@ -1248,7 +1248,7 @@ void AI::animateEntity(AIEntity *e) {
// If it is floating downstream, keep moving it
if (flags & (kFlagPushRight | kFlagPushLeft | kFlagPushUp | kFlagPushDown)) {
int xv = 0, yv = 0;
- AIState state;
+ AIState state = STATE_NONE;
if (flags & kFlagPushRight) {
e->dir = DIR_RIGHT;