From 37c5cb191ccb76e65408cc93d0b4977331c5a24b Mon Sep 17 00:00:00 2001 From: pompachomp Date: Fri, 11 Dec 2009 01:18:22 +0000 Subject: [PATCH] Change some function calls. --- ARL.lua | 4 ++-- Datamine.lua | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ARL.lua b/ARL.lua index 3df26a6..6f4699a 100644 --- a/ARL.lua +++ b/ARL.lua @@ -1425,7 +1425,7 @@ end -- do ------------------------------------------------------------------------------- ---Determines which profession we are dealing with and loads up the recipe information for it. -local function InitializeRecipe(profession) +local function addon:InitializeRecipe(profession) if not profession then --@alpha@ addon:Print("nil profession passed to InitializeRecipe()") @@ -1522,7 +1522,7 @@ do -- Add the recipes to the database -- TODO: Figure out what this variable was supposed to be for - it isn't used anywhere. -Torhal - Player.totalRecipes = InitializeRecipe(Player["Profession"]) + Player.totalRecipes = addon:InitializeRecipe(Player["Profession"]) --- Set the known flag to false for every recipe in the database. for SpellID in pairs(RecipeList) do diff --git a/Datamine.lua b/Datamine.lua index 18c80d3..c5b1af3 100644 --- a/Datamine.lua +++ b/Datamine.lua @@ -1036,7 +1036,7 @@ local function LoadRecipe() if (not dbloaded) then return end for idx, prof in pairs(PROFESSIONS) do - addon:AddRecipeData(prof) + addon:InitializeRecipe(prof) end else addon:Print(L["DATAMINER_NODB_ERROR"]) @@ -1046,7 +1046,7 @@ local function LoadRecipe() -- Recipe DB exists, we just need to populate it now if (addon.db.profile.autoloaddb) then for idx, prof in pairs(PROFESSIONS) do - addon:AddRecipeData(prof) + addon:InitializeRecipe(prof) end end end -- 1.7.9.5