diff options
author | Max Hilbrunner <mhilbrunner@users.noreply.github.com> | 2021-09-03 10:04:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-03 10:04:11 +0200 |
commit | 8c82e305bad4fa1a716c2fa18521f7015dbb67cf (patch) | |
tree | 62edaa0f4a84882363978b9493375204e8943a40 /modules/gdscript | |
parent | c39d31899a9e35fb1166834c68b566978ef5066d (diff) | |
parent | c76ad6b158300182997d425cc73020005f869f3e (diff) |
Merge pull request #52329 from ZuBsPaCe/gdscript-unused-private-class-variable-fix
GDScript: Fix for UNUSED_PRIVATE_CLASS_VARIABLE
Diffstat (limited to 'modules/gdscript')
-rw-r--r-- | modules/gdscript/gdscript_analyzer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_analyzer.cpp b/modules/gdscript/gdscript_analyzer.cpp index a0cf41d5a3..f2b601dc2c 100644 --- a/modules/gdscript/gdscript_analyzer.cpp +++ b/modules/gdscript/gdscript_analyzer.cpp @@ -2494,6 +2494,7 @@ void GDScriptAnalyzer::reduce_identifier_from_base(GDScriptParser::IdentifierNod case GDScriptParser::ClassNode::Member::VARIABLE: p_identifier->source = GDScriptParser::IdentifierNode::MEMBER_VARIABLE; p_identifier->variable_source = member.variable; + member.variable->usages += 1; break; case GDScriptParser::ClassNode::Member::FUNCTION: resolve_function_signature(member.function); |