From 41f4f4b6f9ba5fa20bb41967dc8ef8020081e38e Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 8 Oct 2022 01:34:44 +0200 Subject: a --- src/wall-mesh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/wall-mesh.cpp') diff --git a/src/wall-mesh.cpp b/src/wall-mesh.cpp index dce86dc1..d698b508 100644 --- a/src/wall-mesh.cpp +++ b/src/wall-mesh.cpp @@ -42,7 +42,7 @@ void wall_mesh::draw(tile_shader& shader, chunk& c) texture_array textures = {}; { vertex_array data; - for (auto [x, idx, pt] : c) { + for (auto& [x, idx, pt] : c) { maybe_add_tile(data, textures, x, idx); } _vertex_buffer.setSubData(0, data); -- cgit v1.2.3