From: Fredrik Tolf Date: Mon, 14 Feb 2022 16:47:45 +0000 (+0100) Subject: Fixed heap removal bug. X-Git-Url: http://www.dolda2000.com/gitweb/?a=commitdiff_plain;ds=sidebyside;h=37726d25d7aceb766bb9940a94defb0403c53c38;p=jagi.git Fixed heap removal bug. --- diff --git a/src/jagi/event/Heap.java b/src/jagi/event/Heap.java index aec2991..e807c31 100644 --- a/src/jagi/event/Heap.java +++ b/src/jagi/event/Heap.java @@ -71,6 +71,7 @@ public class Heap { return(null); V ret = val(0); remove(0); + index.remove(ret); return(ret); } @@ -79,6 +80,7 @@ public class Heap { throw(new NoSuchElementException()); V ret = val(0); remove(0); + index.remove(ret); return(ret); }