diff options
| -rw-r--r-- | editor/imgui-inspect.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/imgui-inspect.cpp b/editor/imgui-inspect.cpp index 3b17c106..f7543788 100644 --- a/editor/imgui-inspect.cpp +++ b/editor/imgui-inspect.cpp @@ -49,7 +49,7 @@ void app::draw_inspector() bool is_open = true; if (auto b2 = begin_window(buf, &is_open)) c.with_scenery_bbox_update(s.index(), [&] { return entities::inspect_type(s); }); - else if (!is_open) + if (!is_open) inspectors.erase(inspectors.begin() + (int)i); } } |
