Use the local upvalue instead of the global function reference.
Johnny C. Lam [04-06-14 - 18:44]
Use the local upvalue instead of the global function reference.
git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1257 d5049fe3-3747-40f7-a4b5-f36d6801af5f
diff --git a/OvaleSpellBook.lua b/OvaleSpellBook.lua
index 8873d77..060f39a 100644
--- a/OvaleSpellBook.lua
+++ b/OvaleSpellBook.lua
@@ -84,7 +84,7 @@ local function ScanSpellBook(bookType, numSpells, offset)
local _, _, numSlots, isKnown = API_GetFlyoutInfo(flyoutId)
if numSlots > 0 and isKnown then
for flyoutIndex = 1, numSlots do
- local id, overrideId, isKnown, spellName = GetFlyoutSlotInfo(flyoutId, flyoutIndex)
+ local id, overrideId, isKnown, spellName = API_GetFlyoutSlotInfo(flyoutId, flyoutIndex)
if isKnown then
self_spell[id] = spellName
self_spell[overrideId] = spellName