summaryrefslogtreecommitdiffhomepage
path: root/editor
diff options
context:
space:
mode:
Diffstat (limited to 'editor')
-rw-r--r--editor/app.cpp2
-rw-r--r--editor/scenery-editor.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/editor/app.cpp b/editor/app.cpp
index 49d8e96c..5820c165 100644
--- a/editor/app.cpp
+++ b/editor/app.cpp
@@ -55,7 +55,7 @@ void app::reset_world(struct world&& w)
character_proto cproto;
cproto.name = "Player"_s;
cproto.playable = true;
- _character_id = w2.make_entity<character>(global_coords{}, cproto)->id;
+ _character_id = w2.make_entity<character>(w2.make_id(), global_coords{}, cproto)->id;
}
}
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();
}