From d47ab945fe0ef3dba87f5f5a13c831e8d350ed6a Mon Sep 17 00:00:00 2001 From: CitadelStationBot Date: Sun, 4 Feb 2018 22:25:10 -0600 Subject: [PATCH] [MIRROR] Removes __DATASTRUCTURES (#4791) * Removes unused datastructures (#34292) * Removes __DATASTRUCTURES * Update heap.dm * Update heap.dm * heap --- code/__HELPERS/heap.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/__HELPERS/heap.dm b/code/__HELPERS/heap.dm index ce03b482e5..c34d5a2b9e 100644 --- a/code/__HELPERS/heap.dm +++ b/code/__HELPERS/heap.dm @@ -38,6 +38,7 @@ while(parent > 0 && (call(cmp)(L[index],L[parent]) > 0)) L.Swap(index,parent) + index = parent parent = round(index * 0.5) @@ -67,7 +68,6 @@ //Replaces a given node so it verify the heap condition /datum/Heap/proc/ReSort(atom/A) var/index = L.Find(A) - Swim(index) Sink(index)