Skip to content

Commit

Permalink
Use own lua allocator
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Aug 13, 2017
1 parent cc41976 commit 85cf953
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/xrScriptEngine/script_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@ void CScriptEngine::reinit()
lua_close(m_virtual_machine);
UnregisterState(m_virtual_machine);
}
m_virtual_machine = lua_newstate(lua_alloc, nullptr);
//m_virtual_machine = lua_newstate(lua_alloc, nullptr);
m_virtual_machine = luaL_newstate();
if (!m_virtual_machine)
{
Msg("! ERROR : Cannot initialize script virtual machine!");
Expand Down

0 comments on commit 85cf953

Please sign in to comment.