Skip to content
Permalink
Browse files

Fix main menu being unable to set secure settings

  • Loading branch information
ShadowNinja committed Mar 3, 2016
1 parent abd4a79 commit 7bcbc0105b3e67b7e066be6fd77775769cffdd16
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/script/lua_api/l_util.cpp
@@ -75,9 +75,10 @@ int ModApiUtil::l_get_us_time(lua_State *L)
}

#define CHECK_SECURE_SETTING(L, name) \
if (name.compare(0, 7, "secure.") == 0) {\
lua_pushliteral(L, "Attempt to set secure setting.");\
lua_error(L);\
if (ScriptApiSecurity::isSecure(L) && \
name.compare(0, 7, "secure.") == 0) { \
lua_pushliteral(L, "Attempt to set secure setting."); \
lua_error(L); \
}

// setting_set(name, value)

0 comments on commit 7bcbc01

Please sign in to comment.