diff options
author | Umang Kalra <umangkalra10@gmail.com> | 2020-03-20 16:14:37 +0530 |
---|---|---|
committer | Umang Kalra <umangkalra10@gmail.com> | 2020-04-16 21:23:17 +0530 |
commit | b192c7d1ac3dc06f169312f624eabbd45115ce2d (patch) | |
tree | df13b106db489c49ed820612e1bff1d95b5c3eeb | |
parent | 30ab5c9baae1cad3e157d906395a4eb8cef77e42 (diff) |
Fixed the bool _static logic
-rw-r--r-- | modules/gdscript/gdscript_editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_editor.cpp b/modules/gdscript/gdscript_editor.cpp index 2ec3352e70..e99ed163fb 100644 --- a/modules/gdscript/gdscript_editor.cpp +++ b/modules/gdscript/gdscript_editor.cpp @@ -2150,7 +2150,7 @@ static void _find_identifiers(const GDScriptCompletionContext &p_context, bool p } const GDScriptParser::ClassNode *clss = p_context._class; - bool _static = !p_context.function || p_context.function->_static; + bool _static = p_context.function && p_context.function->_static; while (clss) { GDScriptCompletionContext c = p_context; |