diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2023-05-18 18:32:39 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-05-18 18:37:30 +0200 |
| commit | f5a7dc9d264c4231d9f688704ceef6971bddf272 (patch) | |
| tree | 6996ffd40229708db40d781be36e0cf396a9395b /editor/vobj-editor.cpp | |
| parent | ec7be88fbb4062af20b77198007d815c321c2850 (diff) | |
editor: fix removing scenery
Diffstat (limited to 'editor/vobj-editor.cpp')
| -rw-r--r-- | editor/vobj-editor.cpp | 2 |
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]; |
