summaryrefslogtreecommitdiffhomepage
path: root/editor/imgui-inspect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/imgui-inspect.cpp')
-rw-r--r--editor/imgui-inspect.cpp2
1 files changed, 1 insertions, 1 deletions
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<scenery&>(s);
if (auto b2 = begin_window(buf, &is_open))