diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-08 01:34:44 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-08 01:34:44 +0200 |
commit | 41f4f4b6f9ba5fa20bb41967dc8ef8020081e38e (patch) | |
tree | f06241318bf19d07329b4130fc7e92d4b75dc234 /src/wall-mesh.cpp | |
parent | f845dbb21799d7b2879ba1ea9761fd3e68303ae8 (diff) |
a
Diffstat (limited to 'src/wall-mesh.cpp')
-rw-r--r-- | src/wall-mesh.cpp | 2 |
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); |