summaryrefslogtreecommitdiffhomepage
path: root/editor/vobj-editor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/vobj-editor.cpp')
-rw-r--r--editor/vobj-editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/vobj-editor.cpp b/editor/vobj-editor.cpp
index 2693c44a..2cec6a5c 100644
--- a/editor/vobj-editor.cpp
+++ b/editor/vobj-editor.cpp
@@ -46,7 +46,7 @@ void vobj_editor::place_tile(world& w, global_coords pos, const vobj_* x)
// don't regen colliders
auto [c, t] = w[pos];
const auto px = Vector2(pos.local()) * TILE_SIZE2;
- const auto es = c.entities();
+ const auto& es = c.entities();
for (auto i = es.size()-1; i != (size_t)-1; i--)
{
const auto& e = *es[i];