diff options
Diffstat (limited to 'editor')
-rw-r--r-- | editor/app.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/editor/app.cpp b/editor/app.cpp index aa615137..49d8e96c 100644 --- a/editor/app.cpp +++ b/editor/app.cpp @@ -51,7 +51,12 @@ void app::reset_world(struct world&& w) return; auto& w2 = M->reset_world(std::move(w)); w2.collect(true); - _character_id = w2.make_entity<character>(global_coords{}, true)->id; + { + character_proto cproto; + cproto.name = "Player"_s; + cproto.playable = true; + _character_id = w2.make_entity<character>(global_coords{}, cproto)->id; + } } int app::exec() |