From 9eceb3b69dec2e4bb051aab2e8b5bfa436bb1378 Mon Sep 17 00:00:00 2001 From: SkyMarshal Date: Fri, 24 Jan 2014 09:58:04 -0700 Subject: [PATCH] Fixes a small derp. --- code/defines/procs/AStar.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/defines/procs/AStar.dm b/code/defines/procs/AStar.dm index 037b02280ba..e28a159c6ad 100644 --- a/code/defines/procs/AStar.dm +++ b/code/defines/procs/AStar.dm @@ -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