diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-02 11:38:37 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-02 11:38:37 +0100 |
commit | b98f3159744b800e664d2aae61aa6faf9453f057 (patch) | |
tree | cc1a967de80af2c837bc8a47ea7857104985b9f7 /editor/vobj-editor.cpp | |
parent | f8663e13d49e50412c2faccf0d6c46bc3a90a9f1 (diff) |
c
Diffstat (limited to 'editor/vobj-editor.cpp')
-rw-r--r-- | editor/vobj-editor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/vobj-editor.cpp b/editor/vobj-editor.cpp index 61eb0de7..ea9b8659 100644 --- a/editor/vobj-editor.cpp +++ b/editor/vobj-editor.cpp @@ -47,11 +47,11 @@ void vobj_editor::place_tile(world& w, global_coords pos, const vobj_* x, struct const auto& es = c.objects(); start: while (auto id = a.get_object_colliding_with_cursor()) { - for (auto i = es.size()-1; i != (size_t)-1; i--) + for (auto i = (int)(es.size()-1); i >= 0; i--) { if (es[i]->id == id) { - c.remove_object(i); + c.remove_object((unsigned)i); goto start; } } |