branch | 0.11 |
changeset 11119 | 7d4c292f178e |
parent 8385 | e5d00bf4a4d5 |
--- a/util/indexedbheap.lua Mon Jun 15 14:16:34 2020 +0100 +++ b/util/indexedbheap.lua Tue Sep 29 21:27:16 2020 -0500 @@ -23,7 +23,7 @@ local tmp_sync = sync[k]; while k ~= 1 do local parent = math_floor(k/2); - if tmp < self[parent] then break; end + if tmp >= self[parent] then break; end self[k] = self[parent]; sync[k] = sync[parent]; index[sync[k]] = k;