Pop hook id fetched from table

This commit is contained in:
James R 2021-06-10 18:09:39 -07:00
parent c9417f26e5
commit 46ca9613c6

View file

@ -352,6 +352,7 @@ static void get_hook_from_table(Hook_State *hook, int n)
{
lua_rawgeti(gL, -1, n);
hook->id = lua_tonumber(gL, -1);
lua_pop(gL, 1);
lua_getref(gL, hookRefs[hook->id]);
}