From e9cd6aa7efcab77e7274c9a4c2c946a36548ec24 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 4 Feb 2024 00:26:27 +0100 Subject: w --- editor/tests/raycast-test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor/tests/raycast-test.cpp') 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.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.x()); result = { .from = from, -- cgit v1.2.3