summaryrefslogtreecommitdiffhomepage
path: root/editor/imgui-inspect.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-20 06:29:31 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-20 07:54:17 +0100
commit1c13313ec845d43077bd7e78538358ca4e007f8a (patch)
tree95923091df12f95bae5049d88037c9c8ff39f07f /editor/imgui-inspect.cpp
parent38a87664deaedacf0aa8e97d9b0aa46dfb6c8ae6 (diff)
sort entities by id rather than draw order
Diffstat (limited to 'editor/imgui-inspect.cpp')
-rw-r--r--editor/imgui-inspect.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/editor/imgui-inspect.cpp b/editor/imgui-inspect.cpp
index d95bc441..b1ea923c 100644
--- a/editor/imgui-inspect.cpp
+++ b/editor/imgui-inspect.cpp
@@ -48,16 +48,14 @@ void app::draw_inspector()
auto& s2 = static_cast<scenery&>(s);
if (auto b2 = begin_window(buf, &is_open))
{
- auto idx = s.index();
bool ret = entities::inspect_type(s2);
- if (ret)
- e->reposition(idx);
+ (void)ret;
}
}
else
is_open = false;
if (!is_open)
- inspectors.erase(inspectors.begin() + (int)i);
+ inspectors.erase(inspectors.begin() + (ptrdiff_t)i);
}
}