diff options
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_settings.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/editor_settings.cpp b/editor/editor_settings.cpp index a3438b3601..b55fd40850 100644 --- a/editor/editor_settings.cpp +++ b/editor/editor_settings.cpp @@ -935,6 +935,7 @@ void EditorSettings::create() { String config_file_name = "editor_settings-" + itos(VERSION_MAJOR) + ".tres"; config_file_path = config_dir.plus_file(config_file_name); if (!dir->file_exists(config_file_name)) { + memdelete(dir); goto fail; } |