summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-01-20 18:11:16 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-01-20 18:11:16 +0100
commitd2e9c8ad95f8339628e4e5efbcf93d01a2f3d029 (patch)
tree2abcc1724f9c65795358a8a5136a48a0d7bee396 /src
parent7fb500aa62109f81efb69c32b66505efa8cfdae4 (diff)
a
Diffstat (limited to 'src')
-rw-r--r--src/chunk-scenery.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/chunk-scenery.cpp b/src/chunk-scenery.cpp
index 50840453..c5b77241 100644
--- a/src/chunk-scenery.cpp
+++ b/src/chunk-scenery.cpp
@@ -140,12 +140,12 @@ auto chunk::ensure_scenery_mesh(scenery_scratch_buffers buffers) noexcept -> sce
{
_scenery_modified = false;
- const auto count = fm_begin(
+ const auto count = [&] {
size_t ret = 0;
for (const auto& e : _objects)
ret += !e->is_dynamic();
return ret;
- );
+ }();
auto& scenery_vertexes = buffers.scenery_vertexes;
auto& scenery_indexes = buffers.scenery_indexes;