Fixes a small derp.

This commit is contained in:
SkyMarshal
2014-12-09 18:42:53 -07:00
committed by SkyMarshal
parent 928a0fcf42
commit d3e64deb06
+1 -1
View File
@@ -53,7 +53,7 @@ PriorityQueue
var/index = queue.len
//From what I can tell, this automagically sorts the added data into the correct location.
while(index > 1 && call(comparison_function)(queue[index / 2], queue[index]) > 0)
while(index > 2 && call(comparison_function)(queue[index / 2], queue[index]) > 0)
queue.Swap(index, index / 2)
index /= 2