From 94d0f34f7054775d28261b19052c7ff3ed2dd98c Mon Sep 17 00:00:00 2001 From: Umang Kalra Date: Fri, 20 Mar 2020 16:14:37 +0530 Subject: [PATCH] Fixed the bool _static logic (cherry picked from commit b192c7d1ac3dc06f169312f624eabbd45115ce2d) --- modules/gdscript/gdscript_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gdscript/gdscript_editor.cpp b/modules/gdscript/gdscript_editor.cpp index 075ec34e7e1..c617138fcd8 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;