diff options
| author | Nipun Garg | 2019-06-06 03:42:56 +0530 |
|---|---|---|
| committer | Eugene Sandulenko | 2019-09-03 17:16:43 +0200 |
| commit | 472d5f210428da05b9964c2192bd56e99863c0c6 (patch) | |
| tree | 9ef156bf0fe856064c03b56ffc72b58bdc11de01 | |
| parent | f9beeb66d3674c86c51674577b2b13b13540ba8a (diff) | |
| download | scummvm-rg350-472d5f210428da05b9964c2192bd56e99863c0c6.tar.gz scummvm-rg350-472d5f210428da05b9964c2192bd56e99863c0c6.tar.bz2 scummvm-rg350-472d5f210428da05b9964c2192bd56e99863c0c6.zip | |
HDB: Call lua->init() before initScript
| -rw-r--r-- | engines/hdb/hdb.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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; |
