From 0cd1ffc34ef0d6943e8b97e7f22d9502b040a324 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sun, 23 Jun 2019 00:21:35 +0200 Subject: HDB: Fix crash during initialisation --- engines/hdb/hdb.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/hdb/hdb.cpp') diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp index e92aab3c92..a0c92d2640 100644 --- a/engines/hdb/hdb.cpp +++ b/engines/hdb/hdb.cpp @@ -77,12 +77,12 @@ bool HDBGame::init() { if (!_fileMan->openMPC(getGameFile())) { error("FileMan::openMPC: Cannot find the hyperspace.mpc data file."); } - if (!_ai->init()) { - error("AI::init: Couldn't initialize AI"); - } if (!_drawMan->init()) { error("DrawMan::init: Couldn't initialize DrawMan"); } + if (!_ai->init()) { + error("AI::init: Couldn't initialize AI"); + } if (!_lua->init()) { error("LuaScript::init: Couldn't load the GLOBAL_LUA code."); } -- cgit v1.2.3