summaryrefslogtreecommitdiffhomepage
path: root/src/wall-mesh.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-08 01:34:44 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-08 01:34:44 +0200
commit41f4f4b6f9ba5fa20bb41967dc8ef8020081e38e (patch)
treef06241318bf19d07329b4130fc7e92d4b75dc234 /src/wall-mesh.cpp
parentf845dbb21799d7b2879ba1ea9761fd3e68303ae8 (diff)
a
Diffstat (limited to 'src/wall-mesh.cpp')
-rw-r--r--src/wall-mesh.cpp2
1 files changed, 1 insertions, 1 deletions
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);