From 4a21f53f53f6982b0aec725bd9ae4eebfb1ce39c Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 8 Oct 2022 16:33:24 +0200 Subject: a --- src/tile-iterator.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/tile-iterator.hpp b/src/tile-iterator.hpp index 09d41550..ce4b645e 100644 --- a/src/tile-iterator.hpp +++ b/src/tile-iterator.hpp @@ -39,7 +39,7 @@ struct tile_tuple { { auto& [ptr, pos] = data; if constexpr(N == 0) - return pos == TILE_COUNT ? ptr[0] : ptr[pos]; + return ptr[pos]; else if constexpr(N == 1) return pos; else if constexpr(N == 2) -- cgit v1.2.3