From 599e144453af1aafc35e06973983345f05da8ae5 Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Mon, 22 Jul 2019 00:24:00 +0530 Subject: HDB: Fix initialization warning --- engines/hdb/ai-funcs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') 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; -- cgit v1.2.3