Browse Source

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.
Rémi Verschelde 6 years ago
parent
commit
eb38bc6c0a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      modules/gdscript/gdscript_editor.cpp

+ 2 - 1
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);
 				}
 			}