summaryrefslogtreecommitdiffhomepage
path: root/test/path-search.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/path-search.cpp')
-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 {