diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-28 18:31:18 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-28 18:31:18 +0200 |
commit | 1b84fc144f77c4ebef6fdc0a476410420e0a95b3 (patch) | |
tree | 62d019065f4e704ca33b8808e6d76b2fec640da1 /editor/update.cpp | |
parent | 7c02d3b8f1e6ec4ee82bdf1220da431b1cd1231e (diff) |
refactoring work
Diffstat (limited to 'editor/update.cpp')
-rw-r--r-- | editor/update.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/update.cpp b/editor/update.cpp index d4bfa2d5..f22ad522 100644 --- a/editor/update.cpp +++ b/editor/update.cpp @@ -18,7 +18,7 @@ void app::maybe_initialize_chunk_(const chunk_coords& pos, chunk& c) #else const auto& atlas = pt.x == N/2 || pt.y == N/2 ? _floor2 : _floor1; #endif - x.ground_image = { atlas, k % atlas->num_tiles() }; + x.ground_image = { atlas, decltype(tile_image::variant)(k % atlas->num_tiles()) }; } #ifdef FM_NO_BINDINGS const auto& wall1 = floor1, wall2 = floor1; |