diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-09-27 07:49:37 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-09-27 07:49:37 +0200 |
commit | 39a87e2281176a57a2d9b00b6deeb0c46c702397 (patch) | |
tree | 7208a8a8541ca53113db4bdc6b2f50379a331c68 /test | |
parent | c2869b8f9d851b31ee215c73e4170fa42f37df1c (diff) |
a
Diffstat (limited to 'test')
-rw-r--r-- | test/path-search.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/path-search.cpp b/test/path-search.cpp index f4c94e9c..63e78177 100644 --- a/test/path-search.cpp +++ b/test/path-search.cpp @@ -129,6 +129,7 @@ void test_bbox() static constexpr auto c_idx = [](path_search& search, chunk_coords ch) { auto ch_ = Vector2i(ch) - search.cache.start; + fm_assert(ch_ >= Vector2i{} && ch_ < search.cache.size); return ch_.y()*search.cache.size.x() + ch_.x(); }; static constexpr auto t_idx = [](local_coords tile) constexpr { |