# HG changeset patch # User Farmbuyer of US-Kilrogg # Date 1346052278 14400 # Node ID acaa01b90505b4a6c269fd069a71fd16698d53ba # Parent 08d3d2b7c31da2a7cc77200c0d8436f8fb73c3ad 'Clear' no longer needs to run this loop. diff -r 08d3d2b7c31d -r acaa01b90505 gui.lua --- a/gui.lua Mon Aug 27 02:59:49 2012 -0400 +++ b/gui.lua Mon Aug 27 03:24:38 2012 -0400 @@ -384,15 +384,17 @@ if #g_loot < 1 then --pprint('_f_o_e_d', "#g_loot<1") self.loot_clean = nil - opt_starting_index = nil + return end local display_bcast_from = self.db.profile.display_bcast_from local colcount = #eoi_st_cols - -- 'while true' so that we can use (inner) break as (outer) continue local start = opt_starting_index or math_min (#g_dloot, self.loot_clean or math_huge, #g_loot) + if start < 1 then return end + + -- 'while true' so that we can use (inner) break as (outer) continue for i = start, #g_loot do while true do local e = g_dloot[i] if e == nil then