summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-18 15:41:57 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-18 15:41:57 +0100
commitae3941f4f9705ea7cb2fd0829a8e3431e1e12413 (patch)
treeb63265fbdb185068ec153a781a2a1a7b86645413
parenteb8060057f9bd7824e19ba2c6cbd81fb22485a6e (diff)
src/chunk: assert entities sorted some more
-rw-r--r--src/chunk-render.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/chunk-render.cpp b/src/chunk-render.cpp
index 823e72ab..18e6c4cd 100644
--- a/src/chunk-render.cpp
+++ b/src/chunk-render.cpp
@@ -109,6 +109,8 @@ auto chunk::ensure_scenery_mesh() noexcept -> scenery_mesh_tuple
if (_scenery_modified)
{
_scenery_modified = false;
+ fm_assert(_entities_sorted);
+
const auto count = fm_begin(
std::size_t ret = 0;
for (const auto& e : _entities)