From 489e66b39dab9aebbf1882d3f0801d242a1e1017 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 25 Sep 2023 17:17:01 +0200 Subject: zz --- src/path-search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/path-search.cpp b/src/path-search.cpp index bb342bbf..e6082d67 100644 --- a/src/path-search.cpp +++ b/src/path-search.cpp @@ -62,7 +62,7 @@ bool path_search::is_passable(world& w, chunk_coords_ ch0, Vector2 min, Vector2 { static_assert(iTILE_SIZE2.x() == iTILE_SIZE2.y()); constexpr auto chunk_size = iTILE_SIZE2 * TILE_MAX_DIM; - constexpr auto bbox_size = Vector2i(1 << sizeof(Vector2b().x())*8); + constexpr auto bbox_size = Vector2i(1 << sizeof(Vector2b::Type)*8); constexpr auto chunk_max = chunk_size + bbox_size; const auto off = Vector2(nb)*Vector2(chunk_size); -- cgit v1.2.3