Fixes a small derp.

This commit is contained in:
SkyMarshal
2014-01-24 09:58:04 -07:00
committed by ZomgPonies
parent 583b48ba3b
commit 9eceb3b69d
+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