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 /editor/app.cpp | |
| parent | b93313e438c7b943e506f3c16675e5d38edd0537 (diff) | |
src/entity: move type data member to vtable
Diffstat (limited to 'editor/app.cpp')
| -rw-r--r-- | editor/app.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/app.cpp b/editor/app.cpp index 71b34cb8..89f9ccf6 100644 --- a/editor/app.cpp +++ b/editor/app.cpp @@ -46,7 +46,7 @@ void app::reset_world() void app::ensure_player_character(world& w) { if (_character_id) - if (auto C = w.find_entity(_character_id); C && C->type == entity_type::character) + if (auto C = w.find_entity(_character_id); C && C->type() == entity_type::character) return; _character_id = 0; @@ -57,7 +57,7 @@ void app::ensure_player_character(world& w) for (const auto& e_ : c.entities()) { const auto& e = *e_; - if (e.type == entity_type::character) + if (e.type() == entity_type::character) { const auto& C = static_cast<const character&>(e); if (C.playable) |
