From f81314580885e717d0dc82a082296e09d66f4fa1 Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Thu, 20 Jun 2019 19:33:24 +0530 Subject: [PATCH] HDB: Clear Waypoint data in AI::init() --- engines/hdb/ai-init.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/engines/hdb/ai-init.cpp b/engines/hdb/ai-init.cpp index fcb371a03b0..1230ed09d2d 100644 --- a/engines/hdb/ai-init.cpp +++ b/engines/hdb/ai-init.cpp @@ -679,6 +679,17 @@ AI::~AI() { bool AI::init() { warning("STUB: AI::init incomplete"); + // Clear Waypoint list and load Waypoint graphics + _numWaypoints = 0; + _waypointGfx[0] = new Tile; + _waypointGfx[0]->load(g_hdb->_fileMan->findFirstData("icon_waypoint_select1", TYPE_TILE32)); + _waypointGfx[1] = new Tile; + _waypointGfx[1]->load(g_hdb->_fileMan->findFirstData("icon_waypoint_select2", TYPE_TILE32)); + _waypointGfx[2] = new Tile; + _waypointGfx[2]->load(g_hdb->_fileMan->findFirstData("icon_waypoint_select3", TYPE_TILE32)); + _waypointGfx[3] = new Tile; + _waypointGfx[3]->load(g_hdb->_fileMan->findFirstData("icon_waypoint_select4", TYPE_TILE32)); + _playerRunning = false; restartSystem();