Change some function calls.
pompachomp [12-11-09 - 01:18]
Change some function calls.
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