fixed crash on linux

This commit is contained in:
Mikulas Florek 2023-08-01 22:08:46 +02:00
parent 68a46fbb22
commit 6cefbbe390

View file

@ -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);