Fixed the bool _static logic

(cherry picked from commit b192c7d1ac)
This commit is contained in:
Umang Kalra 2020-03-20 16:14:37 +05:30 committed by Rémi Verschelde
parent 708184c402
commit 94d0f34f70
1 changed files with 1 additions and 1 deletions

View File

@ -2150,7 +2150,7 @@ static void _find_identifiers(const GDScriptCompletionContext &p_context, bool p
} }
const GDScriptParser::ClassNode *clss = p_context._class; 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) { while (clss) {
GDScriptCompletionContext c = p_context; GDScriptCompletionContext c = p_context;