Skip to content

Commit

Permalink
Fixing remove aura issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tdymel committed Jul 20, 2017
1 parent 697f25c commit e94d3e4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Animation.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ end

function MPOWA:FHide(key)
local p = self.SAVE[key]
if self.frames[key][1]:IsVisible() and not self.testall and not p["test"] then
if p and self.frames[key] and self.frames[key][1]:IsVisible() and not self.testall and not p["test"] then
if p["batmananimout"] then
self:PlayAnim("batmananimout", key, "batmananimout")
elseif p["shrinkanim"] then
Expand Down
4 changes: 2 additions & 2 deletions GUI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -696,8 +696,8 @@ function MPOWA:Remove()
newFrames[count] = self.frames[i]
end
end
--self.SAVE = table.copy(newSave)
self.Save = newSave
self.SAVE = table.copy(newSave)
--self.Save = newSave
self.frames = table.copy(newFrames)
newSave = nil
newFrames = nil
Expand Down
2 changes: 1 addition & 1 deletion Init.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CreateFrame("Frame", "MPOWA", UIParent)
MPOWA.Build = 54
MPOWA.Build = 55
MPOWA.Cloaded = false
MPOWA.loaded = false
MPOWA.selected = 1
Expand Down

0 comments on commit e94d3e4

Please sign in to comment.