summaryrefslogtreecommitdiffhomepage
path: root/src/world.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/world.cpp')
-rw-r--r--src/world.cpp4
1 files changed, 3 insertions, 1 deletions
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<entity> 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