diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-19 10:42:54 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-19 10:42:54 +0100 |
| commit | 61d46a790cfde35bedf4283cbbcce06639cce1ec (patch) | |
| tree | ffdbda2cb8fc4e47144aa25458e8191488cea478 /src/world.cpp | |
| parent | b93313e438c7b943e506f3c16675e5d38edd0537 (diff) | |
src/entity: move type data member to vtable
Diffstat (limited to 'src/world.cpp')
| -rw-r--r-- | src/world.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<entity>& 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<global_coords&>(e->coord) = pos; _entities[e->id] = e; if (sorted) |
