Quantcast

Fix call to UpdateSpell() method that broke updating pet spells.

Johnny C. Lam [05-14-14 - 00:36]
Fix call to UpdateSpell() method that broke updating pet spells.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1434 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
OvaleSpellBook.lua
diff --git a/OvaleSpellBook.lua b/OvaleSpellBook.lua
index dbf890a..aa5227c 100644
--- a/OvaleSpellBook.lua
+++ b/OvaleSpellBook.lua
@@ -103,7 +103,7 @@ end
 -- Update spells if the player's pet is summoned or dismissed.
 function OvaleSpellBook:UNIT_PET(unitId)
 	if unitId == "player" then
-		UpdateSpells()
+		self:UpdateSpells()
 	end
 end