Skip to content
Snippets Groups Projects
Commit 46ca9613 authored by James R.'s avatar James R.
Browse files

Pop hook id fetched from table

parent c9417f26
No related branches found
No related tags found
1 merge request!1307Hooklib refactor
......@@ -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]);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment