summaryrefslogtreecommitdiffhomepage
path: root/editor/scenery-editor.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-18 02:02:49 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-18 02:02:49 +0100
commit87b07a5c872ba37676ea02e6f9961307839137b2 (patch)
tree5e8d02a9658ead0779fd012f6faf426fd0e72b8b /editor/scenery-editor.cpp
parent142adf90cdc69bbd608ff03354b54db053540bb7 (diff)
a
Diffstat (limited to 'editor/scenery-editor.cpp')
-rw-r--r--editor/scenery-editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/scenery-editor.cpp b/editor/scenery-editor.cpp
index 1165219d..22a7fd16 100644
--- a/editor/scenery-editor.cpp
+++ b/editor/scenery-editor.cpp
@@ -98,7 +98,7 @@ void scenery_editor::place_tile(world& w, global_coords pos, const scenery_& s)
else
{
// todo check collision at pos
- w.make_entity<scenery>(pos, s.proto);
+ w.make_entity<scenery>(w.make_id(), pos, s.proto);
}
c.mark_scenery_modified();
}