Skip to content

Commit 85cf953

Browse files
committed
Use own lua allocator
1 parent cc41976 commit 85cf953

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/xrScriptEngine/script_engine.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@ void CScriptEngine::reinit()
176176
lua_close(m_virtual_machine);
177177
UnregisterState(m_virtual_machine);
178178
}
179-
m_virtual_machine = lua_newstate(lua_alloc, nullptr);
179+
//m_virtual_machine = lua_newstate(lua_alloc, nullptr);
180+
m_virtual_machine = luaL_newstate();
180181
if (!m_virtual_machine)
181182
{
182183
Msg("! ERROR : Cannot initialize script virtual machine!");

0 commit comments

Comments
 (0)