From 472d5f210428da05b9964c2192bd56e99863c0c6 Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Thu, 6 Jun 2019 03:42:56 +0530 Subject: HDB: Call lua->init() before initScript --- engines/hdb/hdb.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp index 282cd81a63..15263f3ff8 100644 --- a/engines/hdb/hdb.cpp +++ b/engines/hdb/hdb.cpp @@ -67,6 +67,10 @@ bool HDBGame::init() { error("FileMan::openMPC: Cannot find the hyperspace.mpc data file."); return false; } + if (!lua->init()) { + error("LuaScript::init: Couldn't load the GLOBAL_LUA code."); + return false; + } gameShutdown = false; _systemInit = true; -- cgit v1.2.3