Ensure that recipe entries have a name, so ARL doesn't die screaming when Blizzard removes spells.
James D. Callahan III [10-14-10 - 06:32]
Ensure that recipe entries have a name, so ARL doesn't die screaming when Blizzard removes spells.
diff --git a/core.lua b/core.lua
index 0dbd421..854ad71 100644
--- a/core.lua
+++ b/core.lua
@@ -1013,7 +1013,7 @@ do
["item_id"] = item_id,
["quality"] = quality,
["profession"] = GetSpellInfo(profession),
- ["name"] = GetSpellInfo(spell_id),
+ ["name"] = GetSpellInfo(spell_id) or ("%s: %d"):format(_G.UNKNOWN, tonumber(spell_id)),
["flags"] = {},
["acquire_data"] = {},
["specialty"] = specialty, -- Assumption: there will only be 1 speciality for a trade skill