From 908b9414ecf594d8429a3dc8e832f236ed62671d Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Tue, 18 Jun 2019 04:16:56 +0530 Subject: HDB: Call level_loaded Lua function from hdb.cpp --- engines/hdb/hdb.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engines') diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp index 1b86838417..d7df7ef981 100644 --- a/engines/hdb/hdb.cpp +++ b/engines/hdb/hdb.cpp @@ -158,6 +158,8 @@ Common::Error HDBGame::run() { _lua->initScript(luaStream, "MAP00_LUA", luaLength); + _lua->callFunction("level_loaded", 0); + Common::SeekableReadStream *mapStream = _fileMan->findFirstData("MAP00_MSM", TYPE_BINARY); if (mapStream == NULL) { debug("The MAP00_MSM MPC entry can't be found."); -- cgit v1.2.3