diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-01-11 04:03:08 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-01-11 04:03:08 +0100 |
commit | c9360ffe04725abf6e4f1b97d67731981508749f (patch) | |
tree | 941d343a0e2fdb30b0a0409a7be7f7085bd48565 /src | |
parent | f3d870a400395e75f601f32a3bbb3e68502d9000 (diff) |
fix msvc build
Diffstat (limited to 'src')
-rw-r--r-- | src/chunk-walls.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/chunk-walls.cpp b/src/chunk-walls.cpp index 59042a11..6918248c 100644 --- a/src/chunk-walls.cpp +++ b/src/chunk-walls.cpp @@ -308,7 +308,11 @@ GL::Mesh chunk::make_wall_mesh() ranges::sort(ranges::zip_view(vertexes.prefix(N), ArrayView<uint_fast16_t>{_walls->mesh_indexes.data(), N}), - [&A = _walls->atlases](const auto& a, const auto& b) { return A[a.second] < A[b.second]; }); + [&A = _walls->atlases](const auto& a, const auto& b) { + const auto& [av, ai] = a; + const auto& [bv, bi] = b; + return A[ai] < A[bi]; + }); auto vertex_view = std::as_const(vertexes).prefix(N); auto index_view = make_indexes(N); |