Quantcast

Fixed profession lookups.

James D. Callahan III [10-13-10 - 21:11]
Fixed profession lookups.
Filename
Player.lua
core.lua
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