From 39a87e2281176a57a2d9b00b6deeb0c46c702397 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 27 Sep 2023 07:49:37 +0200 Subject: a --- test/path-search.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'test') 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 { -- cgit v1.2.3