diff options
Diffstat (limited to 'main/update.cpp')
-rw-r--r-- | main/update.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/update.cpp b/main/update.cpp index 0d93b0c2..8b0e221f 100644 --- a/main/update.cpp +++ b/main/update.cpp @@ -7,7 +7,7 @@ void app::make_test_chunk(chunk& c) constexpr auto N = TILE_MAX_DIM; for (auto [x, k, pt] : c) { const auto& atlas = pt.x != pt.y && (pt.x == N/2 || pt.y == N/2) ? floor2 : floor1; - x.ground_image = { atlas, (std::uint8_t)(k % atlas->num_tiles().product()) }; + x.ground_image = { atlas, (std::uint8_t)(k % atlas->num_tiles()) }; } constexpr auto K = N/2; c[{K, K }].wall_north = { wall1, 0 }; |