Skip to content

Commit

Permalink
Fixing a potential lua error
Browse files Browse the repository at this point in the history
  • Loading branch information
tdymel committed Jul 20, 2017
1 parent 4e20966 commit fa63d96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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["cdclockanimout"] then
self.frames[key][6]:SetCooldown(0, 0)
end
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 = 55
MPOWA.Build = 56
MPOWA.Cloaded = false
MPOWA.loaded = false
MPOWA.selected = 1
Expand Down

0 comments on commit fa63d96

Please sign in to comment.