Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
4 additions
and
0 deletions.
-
+4
−0
src/script/cpp_api/s_security.cpp
|
@@ -629,7 +629,11 @@ int ScriptApiSecurity::sl_g_loadfile(lua_State *L) |
|
|
{ |
|
|
#ifndef SERVER |
|
|
lua_rawgeti(L, LUA_REGISTRYINDEX, CUSTOM_RIDX_SCRIPTAPI); |
|
|
#if INDIRECT_SCRIPTAPI_RIDX |
|
|
ScriptApiBase *script = (ScriptApiBase *) *(void**)(lua_touserdata(L, -1)); |
|
|
#else |
|
|
ScriptApiBase *script = (ScriptApiBase *) lua_touserdata(L, -1); |
|
|
#endif |
|
|
lua_pop(L, 1); |
|
|
|
|
|
// Client implementation |
|
|