Dolda2000 GitWeb
/
jagi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c1781f
)
Fixed heap removal bug.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Mon, 14 Feb 2022 16:47:45 +0000
(17:47 +0100)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Mon, 14 Feb 2022 16:47:45 +0000
(17:47 +0100)
src/jagi/event/Heap.java
patch
|
blob
|
blame
|
history
diff --git
a/src/jagi/event/Heap.java
b/src/jagi/event/Heap.java
index
aec2991
..
e807c31
100644
(file)
--- a/
src/jagi/event/Heap.java
+++ b/
src/jagi/event/Heap.java
@@
-71,6
+71,7
@@
public class Heap<V, K> {
return(null);
V ret = val(0);
remove(0);
+ index.remove(ret);
return(ret);
}
@@
-79,6
+80,7
@@
public class Heap<V, K> {
throw(new NoSuchElementException());
V ret = val(0);
remove(0);
+ index.remove(ret);
return(ret);
}