diff options
Diffstat (limited to 'editor/tests/raycast-test.cpp')
-rw-r--r-- | editor/tests/raycast-test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/tests/raycast-test.cpp b/editor/tests/raycast-test.cpp index c2300138..a4b3ee8a 100644 --- a/editor/tests/raycast-test.cpp +++ b/editor/tests/raycast-test.cpp @@ -408,7 +408,7 @@ struct raycast_test : base_test auto size_ = Vector2ui{NoInit}; size_[long_axis] = Math::max(tile_size<unsigned>.x(), (unsigned)Math::ceil(long_len / nsteps)); - size_[short_axis] = (unsigned)Math::ceil(short_len / nsteps)+2u; + size_[short_axis] = Math::clamp((unsigned)Math::ceil(short_len / nsteps)+2u, 1u, tile_size<unsigned>.x()); result = { .from = from, |