diff options
| author | Leon Krause <lk@leonkrause.com> | 2017-11-13 21:46:57 +0100 |
|---|---|---|
| committer | Leon Krause <lk@leonkrause.com> | 2017-11-14 15:15:13 +0100 |
| commit | 9b7b46143d2df7d4f2efcb89ceb5034c7a57e79c (patch) | |
| tree | 8ceadc6a5891c5f3205b0e23d5b7dd6ef3d40e1f /main | |
| parent | 3732b2318e8a4942e8202f1797527220a5ae01a0 (diff) | |
| download | redot-engine-9b7b46143d2df7d4f2efcb89ceb5034c7a57e79c.tar.gz | |
Move singleton management from ProjectSettings to Engine
Diffstat (limited to 'main')
| -rw-r--r-- | main/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/main.cpp b/main/main.cpp index aa4dce93a6..cc6e66d352 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -294,7 +294,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph translation_server = memnew(TranslationServer); performance = memnew(Performance); ClassDB::register_class<Performance>(); - globals->add_singleton(ProjectSettings::Singleton("Performance", performance)); + engine->add_singleton(Engine::Singleton("Performance", performance)); GLOBAL_DEF("debug/settings/crash_handler/message", String("Please include this when reporting the bug on https://github.com/godotengine/godot/issues")); |
