From dd1052bb215c70f87097471d2dc41fa477721a43 Mon Sep 17 00:00:00 2001 From: Sidoine De Wispelaere Date: Sat, 19 Jul 2014 15:30:52 +0200 Subject: [PATCH] - Update TOC - Use API_GetTalentInfoByID instead of API_GetTalentInfo --- Ovale.toc | 4 ++-- OvaleSpellBook.lua | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Ovale.toc b/Ovale.toc index fef99ac..701f85a 100644 --- a/Ovale.toc +++ b/Ovale.toc @@ -1,5 +1,5 @@ -## Interface: 50400 -## X-Min-Interface: 50100 +## Interface: 60000 +## X-Min-Interface: 60000 ## Title: Ovale Spell Priority ## Notes: Show the icon of the next spell to cast ## Notes-frFR: Affiche l'icône du prochain sort à lancer diff --git a/OvaleSpellBook.lua b/OvaleSpellBook.lua index 54b99d8..4857d0c 100644 --- a/OvaleSpellBook.lua +++ b/OvaleSpellBook.lua @@ -32,6 +32,7 @@ local API_GetSpellInfo = GetSpellInfo local API_GetSpellLink = GetSpellLink local API_GetSpellTabInfo = GetSpellTabInfo local API_GetTalentInfo = GetTalentInfo +local API_GetTalentInfoByID = GetTalentInfoByID local API_HasPetSpells = HasPetSpells local API_IsSpellOverlayed = IsSpellOverlayed local API_IsUsableSpell = IsUsableSpell @@ -124,7 +125,7 @@ function OvaleSpellBook:UpdateTalents() local i = 1 while true do - local name, _, _, _, selected, _ = API_GetTalentInfo(i) + local name, _, _, _, selected, _ = API_GetTalentInfoByID(i) if not name then break end self.talent[i] = name if selected then -- 1.7.9.5