mirror of
https://github.com/open-goal/jak-project
synced 2026-05-23 06:54:31 -04:00
3e3542cb10
This bit of ff-squad-control code is trying to sort guards based on their distance from some shared target. In some cases the `vector-vector-distance` returns NaN. In the bubble sort below this change, the < operation always returns #t when NaN is involved, so the NaN guard gets swapped back and forth endlessly, causing an infinite loop.