diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-15 21:13:31 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-15 21:13:31 +0100 |
commit | fb3ba3fdf7a468fe1c332018380e90dc35657f29 (patch) | |
tree | 970f054d947592d9d899ec8e6739ba6413ed3a2c /src/world.cpp | |
parent | e93f38b1a0e1c49194c23c9a2163848d750bcd66 (diff) |
a
Diffstat (limited to 'src/world.cpp')
-rw-r--r-- | src/world.cpp | 4 |
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 |