From 02bb76927740fb7c21f60a865af671e7a29bd0fd Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Fri, 26 Mar 2010 03:39:51 -0400 Subject: [PATCH] In ListItem_OnClick(): Fixed an out-of-bounds error. --- Frame.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Frame.lua b/Frame.lua index 5159a79..52f66d5 100644 --- a/Frame.lua +++ b/Frame.lua @@ -2525,7 +2525,7 @@ do local button_index = 1 local string_index = button_index + _G.FauxScrollFrame_GetOffset(MainPanel.scroll_frame) - while button_index <= NUM_RECIPE_LINES do + while button_index <= NUM_RECIPE_LINES and string_index <= num_entries do local cur_state = MainPanel.scroll_frame.state_buttons[button_index] local cur_button = MainPanel.scroll_frame.entry_buttons[button_index] @@ -2537,6 +2537,7 @@ do break end button_index = button_index + 1 + string_index = string_index + 1 end end end -- 1.7.9.5