Fix regression caused by state assertions change

This commit is contained in:
Justine Tunney 2021-08-10 11:36:17 -07:00
parent d26d7ae0e4
commit 79ba5233db

View file

@ -3252,7 +3252,7 @@ static const char *LuaCheckHost(lua_State *L, int idx, size_t *hostlen) {
} }
static void OnlyCallFromInitLua(const char *api) { static void OnlyCallFromInitLua(const char *api) {
if (!isinitialized) { if (isinitialized) {
luaL_error(L, "%s() should be called from the global scope of .init.lua", luaL_error(L, "%s() should be called from the global scope of .init.lua",
api); api);
unreachable; unreachable;