summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-08-10 17:25:33 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-08-11 11:07:55 +0200
commit380c17db511fe8311a6eb817c3ba02ffe3d6cf2e (patch)
treeb0af876869fc4aa6815df80ff7b55213e421379a /src
parentebabac8c61c448e33362102ace5732b39deb885c (diff)
b
Diffstat (limited to 'src')
-rw-r--r--src/chunk-walls.cpp4
1 files changed, 2 insertions, 2 deletions
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<Group_::side, false>(dir.side, A_n, *this, W, vertexes, coord, N, k);
do_wall_part<Group_::top, false>(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);