summaryrefslogtreecommitdiffstats
path: root/editor/editor_paths.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/editor_paths.cpp')
-rw-r--r--editor/editor_paths.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/editor_paths.cpp b/editor/editor_paths.cpp
index d5ba841801..610f66cff9 100644
--- a/editor/editor_paths.cpp
+++ b/editor/editor_paths.cpp
@@ -91,8 +91,7 @@ String EditorPaths::get_feature_profiles_dir() const {
}
void EditorPaths::create() {
- ERR_FAIL_COND(singleton != nullptr);
- memnew(EditorPaths());
+ memnew(EditorPaths);
}
void EditorPaths::free() {
@@ -111,6 +110,7 @@ void EditorPaths::_bind_methods() {
}
EditorPaths::EditorPaths() {
+ ERR_FAIL_COND(singleton != nullptr);
singleton = this;
project_data_dir = ProjectSettings::get_singleton()->get_project_data_path();