Fix crash when launching with --editor and no file
This commit is contained in:
parent
1af1932b37
commit
b44728c77e
1 changed files with 1 additions and 1 deletions
|
@ -759,7 +759,7 @@ bool game_launcher::goto_editor()
|
|||
if(jump_to_editor_){
|
||||
jump_to_editor_ = false;
|
||||
std::unique_ptr<savegame::load_game_metadata> load_data = std::move(load_data_);
|
||||
if (start_editor(filesystem::normalize_path(load_data->filename)) ==
|
||||
if (start_editor(filesystem::normalize_path(load_data ? load_data->filename : "")) ==
|
||||
editor::EXIT_QUIT_TO_DESKTOP)
|
||||
{
|
||||
return false;
|
||||
|
|
Loading…
Add table
Reference in a new issue