diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-01-27 23:46:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-27 23:46:37 +0100 |
commit | e6caaf4c800912517af783e90519cc2a70001e85 (patch) | |
tree | cf0198ec094369e934e5c43d99cfd9196b9a0b74 /modules/gdscript/language_server | |
parent | 46053a1be9cc1bc4957280cc76602aead421884c (diff) | |
parent | 051ef479c93c0c830b60059e3dabed6fc381cdd6 (diff) |
Merge pull request #57205 from TechnoPorg/variant-template-cast
Allow method binds to take Object subclasses as arguments
Diffstat (limited to 'modules/gdscript/language_server')
-rw-r--r-- | modules/gdscript/language_server/gdscript_workspace.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/language_server/gdscript_workspace.cpp b/modules/gdscript/language_server/gdscript_workspace.cpp index 16a107415b..ed879b088a 100644 --- a/modules/gdscript/language_server/gdscript_workspace.cpp +++ b/modules/gdscript/language_server/gdscript_workspace.cpp @@ -585,7 +585,7 @@ void GDScriptWorkspace::completion(const lsp::CompletionParams &p_params, List<S stack.push_back(owner_scene_node); while (!stack.is_empty()) { - current = stack.pop_back(); + current = Object::cast_to<Node>(stack.pop_back()); Ref<GDScript> script = current->get_script(); if (script.is_valid() && script->get_path() == path) { break; |