From eb38bc6c0a5b52dab088ae6e6681f13a288fb9d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Mon, 2 Sep 2019 16:31:43 +0200 Subject: [PATCH] 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. --- modules/gdscript/gdscript_editor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/gdscript/gdscript_editor.cpp b/modules/gdscript/gdscript_editor.cpp index 9d8089f00ee..925dbda620a 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); } }