You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Merge pull request #96927 from HolonProduction/completion-inner-class-base-crash
Autocompletion: Don't use owner for inner classes
This commit is contained in:
@@ -3164,7 +3164,9 @@ static void _find_call_arguments(GDScriptParser::CompletionContext &p_context, c
|
|||||||
HashMap<String, ScriptLanguage::CodeCompletionOption> options;
|
HashMap<String, ScriptLanguage::CodeCompletionOption> options;
|
||||||
|
|
||||||
GDScriptParser::CompletionContext completion_context = parser.get_completion_context();
|
GDScriptParser::CompletionContext completion_context = parser.get_completion_context();
|
||||||
|
if (completion_context.current_class != nullptr && completion_context.current_class->outer == nullptr) {
|
||||||
completion_context.base = p_owner;
|
completion_context.base = p_owner;
|
||||||
|
}
|
||||||
bool is_function = false;
|
bool is_function = false;
|
||||||
|
|
||||||
switch (completion_context.type) {
|
switch (completion_context.type) {
|
||||||
|
|||||||
Reference in New Issue
Block a user