HDB: Fix loading Lua scripts

This commit is contained in:
Eugene Sandulenko 2019-07-13 23:18:30 +02:00
parent a745d45f38
commit 2c40e1ae36

View File

@ -1706,9 +1706,8 @@ void debugHook(lua_State *L, lua_Debug *ar) {
}
bool LuaScript::initScript(Common::SeekableReadStream *stream, const char *scriptName, int32 length) {
if (_systemInit) {
return false;
lua_close(_state);
}
// Initialize Lua Environment