From 4dd360702c45999c1868e285edb7e42ea70575e7 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Sun, 11 Apr 2010 22:26:14 -0400 Subject: [PATCH] In LoadRecipe(): Call addon:InitializeLookups() if it hasn't been already. --- Scanner.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Scanner.lua b/Scanner.lua index 6ec2f9a..c1205b5 100644 --- a/Scanner.lua +++ b/Scanner.lua @@ -546,6 +546,12 @@ local function LoadRecipe() local recipe_list = private.recipe_list if addon.db.profile.autoloaddb then + -- Make sure the lookup lists are loaded as well, since they are no longer automatically loaded in addon:OnEnable(). + if addon.InitializeLookups then + addon:InitializeLookups() + addon.InitializeLookups = nil + end + for idx, prof in pairs(PROFESSIONS) do addon:InitializeRecipe(prof) end -- 1.7.9.5