From b6865a1da8579e0ce7228f60baa66662ce522e4b Mon Sep 17 00:00:00 2001 From: shagu Date: Wed, 20 Mar 2019 10:48:22 +0100 Subject: [PATCH] gui: fix closure of update function Thanks @Road-block --- modules/gui.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/gui.lua b/modules/gui.lua index 5a33e442..7a797947 100644 --- a/modules/gui.lua +++ b/modules/gui.lua @@ -19,9 +19,9 @@ pfUI:RegisterModule("gui", function () U = setmetatable({}, { __index = function(tab,key) local ufunc if pfUI[key] and pfUI[key].UpdateConfig then - ufunc = pfUI[key].UpdateConfig + ufunc = function() return pfUI[key]:UpdateConfig() end elseif pfUI.uf and pfUI.uf[key] and pfUI.uf[key].UpdateConfig then - ufunc = pfUI.uf[key].UpdateConfig + ufunc = function() return pfUI.uf[key]:UpdateConfig() end end if ufunc then rawset(tab,key,ufunc)