diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-20 23:52:36 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-20 23:52:36 +0200 |
commit | 394f6fedbbafe905bdb10c998b0d2b476a1d710f (patch) | |
tree | 222a18dbadb213f962bc620eecce4443e2ca5f9b /test/json.cpp | |
parent | 3c4a9458dd06868fa9bbaab1742ef91816bcd8ac (diff) |
fix tile_atlas::num_tiles() snafu
Diffstat (limited to 'test/json.cpp')
-rw-r--r-- | test/json.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/json.cpp b/test/json.cpp index 73958b5e..afdee3a2 100644 --- a/test/json.cpp +++ b/test/json.cpp @@ -19,7 +19,7 @@ static chunk make_test_chunk() constexpr auto N = TILE_MAX_DIM; chunk c; for (auto& [x, k, pt] : c) { - x.ground_image = { tiles, (std::uint8_t)(k % tiles->num_tiles().product()) }; + x.ground_image = { tiles, (std::uint8_t)(k % tiles->num_tiles()) }; } constexpr auto K = N/2; c[{K, K }].wall_north = { metal1, 0 }; |