diff options
Diffstat (limited to 'util/indexedbheap.lua')
-rw-r--r-- | util/indexedbheap.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/indexedbheap.lua b/util/indexedbheap.lua index c60861e8..7f193d54 100644 --- a/util/indexedbheap.lua +++ b/util/indexedbheap.lua @@ -110,7 +110,7 @@ function indexed_heap:reprioritize(id, priority) self.priorities[k] = priority; k = _percolate_up(self.priorities, k, self.ids, self.index); - k = _percolate_down(self.priorities, k, self.ids, self.index); + _percolate_down(self.priorities, k, self.ids, self.index); end function indexed_heap:remove_index(k) local result = self.priorities[k]; @@ -132,7 +132,7 @@ function indexed_heap:remove_index(k) if size > k then k = _percolate_up(self.priorities, k, self.ids, self.index); - k = _percolate_down(self.priorities, k, self.ids, self.index); + _percolate_down(self.priorities, k, self.ids, self.index); end return result, item, result_sync; |