diff options
-rw-r--r-- | engines/hdb/lua-script.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/hdb/lua-script.cpp b/engines/hdb/lua-script.cpp index ce635d4cb8..2f2802bd4a 100644 --- a/engines/hdb/lua-script.cpp +++ b/engines/hdb/lua-script.cpp @@ -730,7 +730,13 @@ bool LuaScript::initScript(Common::SeekableReadStream *stream, const char *scrip spawn names into Lua once they are implemented. */ - warning("STUB: LuaScript::initScript: Load ai_all_ents"); + // Set the Entity Spawn Names in Lua + int j = 0; + while (aiEntList[j].luaName) { + lua_pushnumber(_state, aiEntList[j].type); + lua_setglobal(_state, aiEntList[j].luaName); + j++; + } // Register panic callback function lua_atpanic(_state, panicCB); |