summaryrefslogtreecommitdiffhomepage
path: root/src/chunk-render.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-04-02 21:39:18 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-04-03 01:22:13 +0200
commitc9d56d6fb1c8eca558db937b99b89535893950a0 (patch)
tree81a4cb7c34af7e78fab8cc2e5780511e8c451978 /src/chunk-render.cpp
parentfc1a03f9a257faf78de7838954709593ab4da628 (diff)
fix some harmless msvc stuff
Diffstat (limited to 'src/chunk-render.cpp')
-rw-r--r--src/chunk-render.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chunk-render.cpp b/src/chunk-render.cpp
index 94200239..9eba6446 100644
--- a/src/chunk-render.cpp
+++ b/src/chunk-render.cpp
@@ -69,7 +69,7 @@ auto chunk::ensure_wall_mesh() noexcept -> wall_mesh_tuple
if (_wall_atlases[i])
wall_indexes[count++] = uint16_t(i);
- std::sort(wall_indexes.begin(), wall_indexes.begin() + count,
+ std::sort(wall_indexes.data(), wall_indexes.data() + (ptrdiff_t)count,
[this](uint16_t a, uint16_t b) {
return _wall_atlases[a] < _wall_atlases[b];
});