From fb3ba3fdf7a468fe1c332018380e90dc35657f29 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 15 Mar 2023 21:13:31 +0100 Subject: a --- src/world.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/world.cpp b/src/world.cpp index 71f6c7a9..a4035e14 100644 --- a/src/world.cpp +++ b/src/world.cpp @@ -130,7 +130,9 @@ void world::do_kill_entity(std::uint64_t id) std::shared_ptr world::find_entity_(std::uint64_t id) { auto it = _entities.find(id); - return it == _entities.end() ? nullptr : it->second.lock(); + auto ret = it == _entities.end() ? nullptr : it->second.lock(); + fm_debug_assert(&ret->c.world() == this); + return ret; } } // namespace floormat -- cgit v1.2.3