Browse Source

GDScript: Fix marking of line with unsafe property access as unsafe

Dmitrii Maganov 2 years ago
parent
commit
3c308f42e2
1 changed files with 1 additions and 0 deletions
  1. 1 0
      modules/gdscript/gdscript_analyzer.cpp

+ 1 - 0
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) {