diff options
-rw-r--r-- | editor/tests/pathfinding.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/tests/pathfinding.cpp b/editor/tests/pathfinding.cpp index 928d7496..b33a71c0 100644 --- a/editor/tests/pathfinding.cpp +++ b/editor/tests/pathfinding.cpp @@ -50,7 +50,7 @@ constexpr step_s next_stepʹ(Vector2i vec_in) const auto major = vec[major_idx], minor = vec[minor_idx]; const auto num_axis_aligned = (uint32_t)Math::abs((int)major - (int)minor); auto axis_aligned = Vector2b{}; - axis_aligned[major] = 1; + axis_aligned[major_idx] = 1; return { num_axis_aligned, axis_aligned * signs }; } } |