diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-09-02 16:31:43 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2019-09-02 16:31:43 +0200 |
commit | eb38bc6c0a5b52dab088ae6e6681f13a288fb9d7 (patch) | |
tree | ccaeba2fb55b602a6dbc966f8c3cb635d4431e25 | |
parent | 877912b23ccfbbb349b495bdf52b694535cc896a (diff) |
gdscript: Fix build after #24925
The PR did not use the ScriptCodeCompletionOption system introduced
later on, and somehow this did not generate a merge conflict even
though neighboring code was changed.
-rw-r--r-- | modules/gdscript/gdscript_editor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_editor.cpp b/modules/gdscript/gdscript_editor.cpp index 9d8089f00e..925dbda620 100644 --- a/modules/gdscript/gdscript_editor.cpp +++ b/modules/gdscript/gdscript_editor.cpp @@ -2833,7 +2833,8 @@ Error GDScriptLanguage::complete_code(const String &p_code, const String &p_path if (!s.begins_with("autoload/")) { continue; } - options.insert(s.get_slice("/", 1)); + ScriptCodeCompletionOption option(s.get_slice("/", 1), ScriptCodeCompletionOption::KIND_CLASS); + options.insert(option.display, option); } } |