From 8f002399a3fd0957132a18da2b50af60ab025b56 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Tue, 30 Mar 2010 09:30:27 -0400 Subject: [PATCH] Moved recipe_registry to just before the definition of ListFrame:Initialize() --- Frame.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Frame.lua b/Frame.lua index 705eaba..fe5db30 100644 --- a/Frame.lua +++ b/Frame.lua @@ -2720,10 +2720,6 @@ do return is_good end - -- Used for Location and Acquisition sort - since many recipes have multiple locations/acquire types it is - -- necessary to ensure each is counted only once. - local recipe_registry = {} - function ListFrame:InsertEntry(entry, parent_entry, entry_index, entry_type, entry_expanded, expand_mode) local insert_index = entry_index @@ -2758,6 +2754,10 @@ do return insert_index end + -- Used for Location and Acquisition sort - since many recipes have multiple locations/acquire types it is + -- necessary to ensure each is counted only once. + local recipe_registry = {} + function ListFrame:Initialize(expand_mode) local recipe_list = private.recipe_list local sorted_recipes = addon.sorted_recipes -- 1.7.9.5