summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-09-02 16:50:14 +0200
committerGitHub <noreply@github.com>2019-09-02 16:50:14 +0200
commit97d48e04f92d3c901b6b9b162f603090f9feecff (patch)
treeccaeba2fb55b602a6dbc966f8c3cb635d4431e25 /modules
parent877912b23ccfbbb349b495bdf52b694535cc896a (diff)
parenteb38bc6c0a5b52dab088ae6e6681f13a288fb9d7 (diff)
Merge pull request #31901 from akien-mga/completion-option-fix-build
gdscript: Fix build after #24925
Diffstat (limited to 'modules')
-rw-r--r--modules/gdscript/gdscript_editor.cpp3
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);
}
}