aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2019-06-23 00:21:35 +0200
committerEugene Sandulenko2019-09-03 17:16:56 +0200
commit0cd1ffc34ef0d6943e8b97e7f22d9502b040a324 (patch)
treedac2ed9d49b820d341f0d991f71aacc516bd4d81
parent86cc1df32d616c074b793efdc8dfbf851cb5f70b (diff)
downloadscummvm-rg350-0cd1ffc34ef0d6943e8b97e7f22d9502b040a324.tar.gz
scummvm-rg350-0cd1ffc34ef0d6943e8b97e7f22d9502b040a324.tar.bz2
scummvm-rg350-0cd1ffc34ef0d6943e8b97e7f22d9502b040a324.zip
HDB: Fix crash during initialisation
-rw-r--r--engines/hdb/hdb.cpp6
1 files changed, 3 insertions, 3 deletions
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.");
}