From fb43f53dac845c1c8cfe68928e6f88dc8292a4b7 Mon Sep 17 00:00:00 2001 From: VideoPlayerCode <38923130+VideoPlayerCode@users.noreply.github.com> Date: Sun, 19 May 2019 22:01:46 +0200 Subject: [PATCH] Bugfix: Send correct parameters to CreateMover The "E:LoadMovers()" call to the local function "CreateMover()" was missing its "text" parameter (3rd parameter), which meant that all subsequent function calls via LoadMovers submitted corrupted function parameters. However, the proper value for the "text" parameter IS being saved by "E:CreateMover()", so we HAVE everything we needed to fix the bug. We simply have to pass the t.text value in the call! --- ElvUI/core/movers.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ElvUI/core/movers.lua b/ElvUI/core/movers.lua index 12ffadf..d109d9b 100644 --- a/ElvUI/core/movers.lua +++ b/ElvUI/core/movers.lua @@ -509,7 +509,9 @@ end --Called from core.lua function E:LoadMovers() - for n, t in pairs(E.CreatedMovers) do - CreateMover(t.parent, n, t.overlay, t.snapoffset, t.postdrag, t.shouldDisable, t.configString) + for name, t in pairs(E.CreatedMovers) do + --All of these properties are cached in E.CreatedMovers by "E:CreateMover()", + --so that we can reproduce the function calls identically here. + CreateMover(t.parent, name, t.text, t.overlay, t.snapoffset, t.postdrag, t.shouldDisable, t.configString) end end \ No newline at end of file