Skip to content
This repository has been archived by the owner on Jun 2, 2021. It is now read-only.

Commit

Permalink
Bugfix: Send correct parameters to CreateMover
Browse files Browse the repository at this point in the history
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!
  • Loading branch information
Arcitec committed May 19, 2019
1 parent 1e2ac31 commit fb43f53
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ElvUI/core/movers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit fb43f53

Please sign in to comment.