diff options
author | Dmitrii Maganov <vonagam@gmail.com> | 2023-01-25 01:45:40 +0200 |
---|---|---|
committer | Dmitrii Maganov <vonagam@gmail.com> | 2023-01-25 01:45:40 +0200 |
commit | 3c308f42e22a30fd7f0fd5d3cd39e21b265ff0d4 (patch) | |
tree | 345703155f9bd657b5a4396e1db3bc4bcee7243d | |
parent | a3a42159e31db27f8ae7c1ecad6a9ed417cb05de (diff) |
GDScript: Fix marking of line with unsafe property access as unsafe
-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 e04a962dcb..95f53d3d39 100644 --- a/modules/gdscript/gdscript_analyzer.cpp +++ b/modules/gdscript/gdscript_analyzer.cpp @@ -3534,6 +3534,7 @@ void GDScriptAnalyzer::reduce_subscript(GDScriptParser::SubscriptNode *p_subscri } #endif result_type.kind = GDScriptParser::DataType::VARIANT; + mark_node_unsafe(p_subscript); } } if (!valid) { |