summaryrefslogtreecommitdiffhomepage
path: root/src/chunk-collision.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-18 16:03:22 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-18 16:03:22 +0100
commit6e7e8c4880b86d4477839cb087b34b4282e5516a (patch)
treefce74f4b8c9dbdec0439d76c5969cfa05ec442f6 /src/chunk-collision.cpp
parent47b28035df1ce64d996b949b971ccf40bae2b9c8 (diff)
src/chunk: more debug code
Diffstat (limited to 'src/chunk-collision.cpp')
-rw-r--r--src/chunk-collision.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/chunk-collision.cpp b/src/chunk-collision.cpp
index c228c514..fc7ab92a 100644
--- a/src/chunk-collision.cpp
+++ b/src/chunk-collision.cpp
@@ -53,6 +53,8 @@ constexpr std::uint64_t make_id(collision_type type, pass_mode p, std::uint64_t
void chunk::ensure_passability() noexcept
{
+ fm_assert(_entities_sorted); // not strictly necessary
+
if (!_pass_modified)
return;
_pass_modified = false;