diff --git a/compat/vanilla.lua b/compat/vanilla.lua index 0ad1e2d2..54c980a9 100644 --- a/compat/vanilla.lua +++ b/compat/vanilla.lua @@ -48,12 +48,13 @@ function hooksecurefunc(tbl, name, func, prepend) if prepend then pfUI.hooks[tostring(func)]["function"] = function(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) pfUI.hooks[tostring(func)]["new"](a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) - pfUI.hooks[tostring(func)]["old"](a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) + return pfUI.hooks[tostring(func)]["old"](a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) end else pfUI.hooks[tostring(func)]["function"] = function(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) - pfUI.hooks[tostring(func)]["old"](a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) + local r1, r2, r3, r4, r5, r6, r7, r8, r9, r10 = pfUI.hooks[tostring(func)]["old"](a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) pfUI.hooks[tostring(func)]["new"](a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) + return r1, r2, r3, r4, r5, r6, r7, r8, r9, r10 end end