diff --git a/src/lua_playerlib.c b/src/lua_playerlib.c index d5b949f43f01bc48db7909939f8491cce24c85ae..b3bda2520d2e709d8c39de8531343a4bdd6c9a61 100644 --- a/src/lua_playerlib.c +++ b/src/lua_playerlib.c @@ -634,7 +634,8 @@ static int power_get(lua_State *L) } // powers, p, value -> powers[p] = value -static int power_set(lua_State *L){ +static int power_set(lua_State *L) +{ UINT16 *powers = *((UINT16 **)luaL_checkudata(L, 1, META_POWERS)); powertype_t p = luaL_checkinteger(L, 2);