From 08808e220077b8899e361423cb665903d3c360ad Mon Sep 17 00:00:00 2001 From: Steel Titanium Date: Sat, 24 Aug 2019 18:27:07 -0400 Subject: [PATCH] I don't even know how this happened --- src/lua_playerlib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lua_playerlib.c b/src/lua_playerlib.c index d5b949f43..b3bda2520 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);