From 21878e1d6ef0883a293ea5fa703c41b1e204b948 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Wed, 13 Oct 2010 17:11:57 -0400 Subject: [PATCH] Fixed profession lookups. --- Player.lua | 2 +- core.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Player.lua b/Player.lua index d8a6e2c..3c0e038 100644 --- a/Player.lua +++ b/Player.lua @@ -114,7 +114,7 @@ function Player:SetProfessions() end for index = 1, 25, 1 do - local spell_name = GetSpellName(index, BOOKTYPE_SPELL) + local spell_name = GetSpellBookItemName(index, BOOKTYPE_SPELL) if not spell_name or index == 25 then break diff --git a/core.lua b/core.lua index 89580b0..0dbd421 100644 --- a/core.lua +++ b/core.lua @@ -1542,7 +1542,7 @@ do local specialty = SpecialtyTable[current_prof] for index = 1, 25, 1 do - local spellName = GetSpellName(index, BOOKTYPE_SPELL) + local spellName = GetSpellBookItemName(index, BOOKTYPE_SPELL) if not spellName or index == 25 then Player["Specialty"] = nil -- 1.7.9.5