We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc41976 commit 85cf953Copy full SHA for 85cf953
src/xrScriptEngine/script_engine.cpp
@@ -176,7 +176,8 @@ void CScriptEngine::reinit()
176
lua_close(m_virtual_machine);
177
UnregisterState(m_virtual_machine);
178
}
179
- m_virtual_machine = lua_newstate(lua_alloc, nullptr);
+ //m_virtual_machine = lua_newstate(lua_alloc, nullptr);
180
+ m_virtual_machine = luaL_newstate();
181
if (!m_virtual_machine)
182
{
183
Msg("! ERROR : Cannot initialize script virtual machine!");
0 commit comments