Skip to content

Commit

Permalink
Fixes issue with disposal unit test check
Browse files Browse the repository at this point in the history
  • Loading branch information
PowerfulBacon committed Aug 25, 2024
1 parent 4e95a42 commit 602bb86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/modules/unit_tests/mapping/check_disposals.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 602bb86

Please sign in to comment.