summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-09-27 07:49:37 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-09-27 07:49:37 +0200
commit39a87e2281176a57a2d9b00b6deeb0c46c702397 (patch)
tree7208a8a8541ca53113db4bdc6b2f50379a331c68 /test
parentc2869b8f9d851b31ee215c73e4170fa42f37df1c (diff)
a
Diffstat (limited to 'test')
-rw-r--r--test/path-search.cpp1
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 {