diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-04-09 15:59:05 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-04-09 15:59:05 +0200 |
commit | 08f6e5b2b72180a85fe3bc46b4d5b81b0b3c4e4f (patch) | |
tree | 8712601e5d7aa67c4e1e1c9f8d8faffd53f41eee /src | |
parent | eca0c1d438410932831e75e8ce3be961e05a6e2f (diff) |
a
Diffstat (limited to 'src')
-rw-r--r-- | src/world.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/world.cpp b/src/world.cpp index 2c8db38b..d1c5dd43 100644 --- a/src/world.cpp +++ b/src/world.cpp @@ -154,7 +154,7 @@ void world::collect(bool force) void world::do_make_object(const std::shared_ptr<object>& e, global_coords pos, bool sorted) { - fm_assert(e->id > 0); + fm_debug_assert(e->id != 0); // todo! add fm_debug2_assert() fm_debug_assert(e->c); fm_debug_assert(pos.chunk3() == e->c->coord()); fm_debug_assert(_unique_id && e->c->world()._unique_id == _unique_id); @@ -171,7 +171,7 @@ void world::do_make_object(const std::shared_ptr<object>& e, global_coords pos, void world::do_kill_object(object_id id) { - fm_debug_assert(id > 0); + fm_debug_assert(id != 0); auto cnt = _objects->erase(id); fm_debug_assert(cnt > 0); } |