player: fix spark related error on size change

This commit is contained in:
shagu
2017-01-05 00:27:34 +01:00
parent 8f3e84f8e0
commit 9ec300b917
+1
View File
@@ -330,6 +330,7 @@ pfUI:RegisterModule("player", function ()
local value = pfUI.api.round((GetTime() - this.lastTick) * 100)
local pos = pfUI_config.unitframes.player.width / 200 * value
if not pfUI_config.unitframes.player.pheigh then return end
this.spark:SetPoint("LEFT", pos-((pfUI_config.unitframes.player.pheight+5)/2), 0)
end)
end