Skip to content

Commit

Permalink
Fix CSMs on arm64 (#10553)
Browse files Browse the repository at this point in the history
  • Loading branch information
luk3yx committed Oct 25, 2020
1 parent 707c8c1 commit 61a1963
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/script/cpp_api/s_security.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 61a1963

Please sign in to comment.