Added fault-tolerance to GenericAddRecipeAcquire().
James D. Callahan III [12-15-10 - 20:11]
Added fault-tolerance to GenericAddRecipeAcquire().
diff --git a/core.lua b/core.lua
index bc0c6e3..964fbe2 100644
--- a/core.lua
+++ b/core.lua
@@ -1260,6 +1260,10 @@ do
local cur_var = 1
local recipe = private.recipe_list[spell_id]
+ if not recipe then
+ addon:Debug("GenericAddRecipeAcquire(): No recipe found for Spell ID %d.", spell_id)
+ return
+ end
local acquire_data = recipe.acquire_data
acquire_data[acquire_type] = acquire_data[acquire_type] or {}