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 --- editor/imgui-inspect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor/imgui-inspect.cpp') diff --git a/editor/imgui-inspect.cpp b/editor/imgui-inspect.cpp index 45b42b7b..7ef24913 100644 --- a/editor/imgui-inspect.cpp +++ b/editor/imgui-inspect.cpp @@ -42,7 +42,7 @@ void app::draw_inspector() snformat(buf, "{} ({}x{} -> {}x{})"_cf, name, ch.x, ch.y, (int)pos.x, (int)pos.y); bool is_open = true; - if (s.type == entity_type::scenery) + if (s.type() == entity_type::scenery) { auto& s2 = static_cast(s); if (auto b2 = begin_window(buf, &is_open)) -- cgit v1.2.3