From 61d46a790cfde35bedf4283cbbcce06639cce1ec Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 19 Mar 2023 10:42:54 +0100 Subject: src/entity: move type data member to vtable --- src/world.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/world.cpp') diff --git a/src/world.cpp b/src/world.cpp index 07cfe196..8c564007 100644 --- a/src/world.cpp +++ b/src/world.cpp @@ -117,7 +117,7 @@ void world::do_make_entity(const std::shared_ptr& e, global_coords pos, fm_debug_assert(_unique_id && e->c->world()._unique_id == _unique_id); fm_assert(!_entities.contains(e->id)); fm_assert(Vector2ui(e->bbox_size).product() > 0); - fm_assert(e->type != entity_type::none); + fm_assert(e->type() != entity_type::none); const_cast(e->coord) = pos; _entities[e->id] = e; if (sorted) -- cgit v1.2.3