summaryrefslogtreecommitdiffhomepage
path: root/editor/update.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/update.cpp')
-rw-r--r--editor/update.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/update.cpp b/editor/update.cpp
index 62f0e5d3..6e6a18e7 100644
--- a/editor/update.cpp
+++ b/editor/update.cpp
@@ -209,8 +209,8 @@ void app::update_world(float dt)
auto& c = *c_;
const auto& es = c.objects();
const auto size = es.size();
- for (auto i = size-1; i != (size_t)-1; i--)
- es[i]->update(i, dt);
+ for (auto i = (int)(size-1); i >= 0; i--)
+ es[i]->update((unsigned)i, dt);
}
}