summaryrefslogtreecommitdiffhomepage
path: root/editor/inspect-draw.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-02-02 11:38:37 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-02-02 11:38:37 +0100
commitb98f3159744b800e664d2aae61aa6faf9453f057 (patch)
treecc1a967de80af2c837bc8a47ea7857104985b9f7 /editor/inspect-draw.cpp
parentf8663e13d49e50412c2faccf0d6c46bc3a90a9f1 (diff)
c
Diffstat (limited to 'editor/inspect-draw.cpp')
-rw-r--r--editor/inspect-draw.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/inspect-draw.cpp b/editor/inspect-draw.cpp
index 34c096ea..e47ac692 100644
--- a/editor/inspect-draw.cpp
+++ b/editor/inspect-draw.cpp
@@ -20,13 +20,13 @@ void app::draw_inspector()
const auto dpi = M->dpi_scale();
auto& w = M->world();
- for (auto i = inspectors.size()-1; i != -1uz; i--)
+ for (auto i = (int)(inspectors.size()-1); i >= 0; i--)
{
auto [id, target] = inspectors[i];
auto e_ = w.find_object(id);
if (!e_)
{
- erase_inspector(i);
+ erase_inspector((unsigned)i);
continue;
}
auto& e = *e_;
@@ -53,7 +53,7 @@ auto z = e.coord.z();
(void)ret;
}
if (!is_open)
- erase_inspector(i);
+ erase_inspector((unsigned)i);
}
}