fixed crash on linux
This commit is contained in:
parent
68a46fbb22
commit
6cefbbe390
1 changed files with 5 additions and 1 deletions
|
@ -88,7 +88,11 @@ struct EngineImpl final : Engine {
|
|||
|
||||
os::logInfo();
|
||||
|
||||
m_state = lua_newstate(luaAlloc, this);
|
||||
#ifdef _WIN32
|
||||
m_state = lua_newstate(luaAlloc, this);
|
||||
#else
|
||||
m_state = luaL_newstate();
|
||||
#endif
|
||||
luaL_openlibs(m_state);
|
||||
registerEngineAPI(m_state, this);
|
||||
|
||||
|
|
Loading…
Reference in a new issue