From 602bb86fd93682eb7a10ab749c0a017abab884a5 Mon Sep 17 00:00:00 2001 From: PowerfulBacon <26465327+PowerfulBacon@users.noreply.github.com> Date: Sun, 25 Aug 2024 11:57:56 +0100 Subject: [PATCH] Fixes issue with disposal unit test check --- code/modules/unit_tests/mapping/check_disposals.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/unit_tests/mapping/check_disposals.dm b/code/modules/unit_tests/mapping/check_disposals.dm index 0965752758a43..c06420683e00b 100644 --- a/code/modules/unit_tests/mapping/check_disposals.dm +++ b/code/modules/unit_tests/mapping/check_disposals.dm @@ -22,7 +22,7 @@ return "[target.name] not attached to a trunk" // Create a terrible disposal holder object var/obj/structure/disposalholder/holder = new() - traverse_loop(target.trunk, holder) + traverse_loop(holder, target.trunk) // Abuse byonds variables to get out (We can use pointers as an out variable in 515) if (failure_reason) failures += failure_reason @@ -36,7 +36,7 @@ // We should be able to enter the loop at any point from an input gate to get to our destination for (var/sort_code in GLOB.TAGGERLOCATIONS) holder.destinationTag = sort_code - var/obj/structure/disposaloutlet/destination = traverse_loop(target.trunk, holder) + var/obj/structure/disposaloutlet/destination = traverse_loop(holder, target.trunk) if (failure_reason) return failure_reason var/arrived = FALSE