From f80550e5246d4cef4e7b36cf4f52977219c972f8 Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Sat, 22 Jun 2019 05:49:57 +0530 Subject: HDB: Add AutoAction struct and _autoActions array --- engines/hdb/ai-init.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'engines/hdb/ai-init.cpp') diff --git a/engines/hdb/ai-init.cpp b/engines/hdb/ai-init.cpp index 76c794457f..65240d1d19 100644 --- a/engines/hdb/ai-init.cpp +++ b/engines/hdb/ai-init.cpp @@ -820,6 +820,9 @@ void AI::restartSystem() { memset(_clubLeftGfx, NULL, kMaxAnimFrames * sizeof(Tile *)); memset(_clubRightGfx, NULL, kMaxAnimFrames * sizeof(Tile *)); + // Clear the Auto-Action list + memset(_autoActions, 0, sizeof(_autoActions)); + // Clear the Entity List _ents->clear(); -- cgit v1.2.3