diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-08 01:34:44 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-08 01:34:44 +0200 |
| commit | 41f4f4b6f9ba5fa20bb41967dc8ef8020081e38e (patch) | |
| tree | f06241318bf19d07329b4130fc7e92d4b75dc234 /test/json.cpp | |
| parent | f845dbb21799d7b2879ba1ea9761fd3e68303ae8 (diff) | |
a
Diffstat (limited to 'test/json.cpp')
| -rw-r--r-- | test/json.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/json.cpp b/test/json.cpp index 3ce3c9d0..46bdf528 100644 --- a/test/json.cpp +++ b/test/json.cpp @@ -18,7 +18,7 @@ static chunk make_test_chunk() metal3 = loader.tile_atlas("share/game/images/metal3.tga", {2, 2}); constexpr auto N = TILE_MAX_DIM; chunk c; - for (auto [x, k, pt] : c) { + for (auto& [x, k, pt] : c) { const auto& atlas = pt.x > N/2 && pt.y >= N/2 ? metal1 : metal2; x.ground_image = { atlas, (std::uint8_t)(k % atlas->num_tiles().product()) }; } @@ -52,6 +52,7 @@ bool app::test_json() // NOLINT(readability-convert-member-functions-to-static) const auto chunk = make_test_chunk(); ret &= json_helper::to_json(chunk, output_dir/"zzz_chunk-1.json"); } + return ret; } |
