summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-01-26 01:04:57 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-01-26 01:04:57 +0100
commit944b44243de9ca74160f534b79987e5d01db1a36 (patch)
treeda46c6d07959441adafdee17c2fe199b8c0e5187 /modules
parent10d22a4b35b33ad89f626c261ef7f1aeae81daf3 (diff)
parent3c308f42e22a30fd7f0fd5d3cd39e21b265ff0d4 (diff)
Merge pull request #72008 from vonagam/fix-property-access-unsafe-mark
GDScript: Fix marking of line with unsafe property access as unsafe
Diffstat (limited to 'modules')
-rw-r--r--modules/gdscript/gdscript_analyzer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_analyzer.cpp b/modules/gdscript/gdscript_analyzer.cpp
index bc304b036b..03b0dd73e1 100644
--- a/modules/gdscript/gdscript_analyzer.cpp
+++ b/modules/gdscript/gdscript_analyzer.cpp
@@ -3532,6 +3532,7 @@ void GDScriptAnalyzer::reduce_subscript(GDScriptParser::SubscriptNode *p_subscri
}
#endif
result_type.kind = GDScriptParser::DataType::VARIANT;
+ mark_node_unsafe(p_subscript);
}
}
if (!valid) {