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/scenery-editor.cpp | |
| parent | b93313e438c7b943e506f3c16675e5d38edd0537 (diff) | |
src/entity: move type data member to vtable
Diffstat (limited to 'editor/scenery-editor.cpp')
| -rw-r--r-- | editor/scenery-editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/scenery-editor.cpp b/editor/scenery-editor.cpp index 562ca04f..fd859db3 100644 --- a/editor/scenery-editor.cpp +++ b/editor/scenery-editor.cpp @@ -87,7 +87,7 @@ void scenery_editor::place_tile(world& w, global_coords pos, const scenery_& s) for (auto i = es.size()-1; i != (size_t)-1; i--) { const auto& e = *es[i]; - if (e.type != entity_type::scenery) + if (e.type() != entity_type::scenery) continue; auto center = Vector2(e.coord.local())*TILE_SIZE2 + Vector2(e.offset) + Vector2(e.bbox_offset), min = center - Vector2(e.bbox_size/2), max = min + Vector2(e.bbox_size); |
