summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-08 16:33:24 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-08 16:33:24 +0200
commit4a21f53f53f6982b0aec725bd9ae4eebfb1ce39c (patch)
tree61063dcd940bbd9c93f858da1907ef66ae61a032
parentebb607d27df8d9887ff9d6b014a593f5b6eb7223 (diff)
a
-rw-r--r--src/tile-iterator.hpp2
1 files changed, 1 insertions, 1 deletions
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)