From 3c308f42e22a30fd7f0fd5d3cd39e21b265ff0d4 Mon Sep 17 00:00:00 2001 From: Dmitrii Maganov Date: Wed, 25 Jan 2023 01:45:40 +0200 Subject: GDScript: Fix marking of line with unsafe property access as unsafe --- modules/gdscript/gdscript_analyzer.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'modules') 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) { -- cgit v1.2.3