Skip to content

Commit 96e2c39

Browse files
committed
Mac buildfix
1 parent fbbaa98 commit 96e2c39

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

Core/LuaContext.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -115,17 +115,17 @@ void LuaContext::SetupContext(sol::state &lua) {
115115
// Remove some stuff we don't want to expose.
116116
// TODO: The sandbox environmeent method would be better.
117117
sol::table globals = lua.globals();
118-
globals["dofile"] = sol::nil;
119-
globals["load"] = sol::nil;
120-
globals["loadstring"] = sol::nil;
121-
globals["loadfile"] = sol::nil;
122-
globals["collectgarbage"] = sol::nil;
123-
globals["rawequal"] = sol::nil;
124-
globals["rawset"] = sol::nil;
125-
globals["rawget"] = sol::nil;
126-
globals["setmetatable"] = sol::nil;
127-
globals["debug"] = sol::nil;
128-
globals["require"] = sol::nil;
118+
globals["dofile"] = sol::lua_nil;
119+
globals["load"] = sol::lua_nil;
120+
globals["loadstring"] = sol::lua_nil;
121+
globals["loadfile"] = sol::lua_nil;
122+
globals["collectgarbage"] = sol::lua_nil;
123+
globals["rawequal"] = sol::lua_nil;
124+
globals["rawset"] = sol::lua_nil;
125+
globals["rawget"] = sol::lua_nil;
126+
globals["setmetatable"] = sol::lua_nil;
127+
globals["debug"] = sol::lua_nil;
128+
globals["require"] = sol::lua_nil;
129129

130130
extern const char *PPSSPP_GIT_VERSION;
131131
lua.set("ver", PPSSPP_GIT_VERSION);

0 commit comments

Comments
 (0)