From 380c17db511fe8311a6eb817c3ba02ffe3d6cf2e Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 10 Aug 2024 17:25:33 +0200 Subject: b --- src/chunk-walls.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/chunk-walls.cpp b/src/chunk-walls.cpp index 9c854546..444e6e6d 100644 --- a/src/chunk-walls.cpp +++ b/src/chunk-walls.cpp @@ -307,7 +307,7 @@ GL::Mesh chunk::make_wall_mesh() { const auto coord = global_coords{_coord, local_coords{k}}; - if (auto A_nʹ = W.atlases[k*2 + 0].get()) + if (auto* A_nʹ = W.atlases[k*2 + 0].get()) { auto& A_n = *A_nʹ; const auto& dir = A_n.calc_direction(Direction_::N); @@ -315,7 +315,7 @@ GL::Mesh chunk::make_wall_mesh() do_wall_part(dir.side, A_n, *this, W, vertexes, coord, N, k); do_wall_part(dir.top, A_n, *this, W, vertexes, coord, N, k); } - if (auto A_wʹ = W.atlases[k*2 + 1].get()) + if (auto* A_wʹ = W.atlases[k*2 + 1].get()) { auto& A_w = *A_wʹ; const auto& dir = A_w.calc_direction(Direction_::W); -- cgit v1.2.3