From 0780ad2800aeeb26c02871d0a6242f68097c69b2 Mon Sep 17 00:00:00 2001 From: Thakee Nathees Date: Fri, 17 Apr 2020 12:13:57 +0530 Subject: line unsafe for indexing with known base type & unkown identifier --- modules/gdscript/gdscript_parser.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'modules') diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp index 8d34ce5c70..4449038fab 100644 --- a/modules/gdscript/gdscript_parser.cpp +++ b/modules/gdscript/gdscript_parser.cpp @@ -6562,6 +6562,7 @@ GDScriptParser::DataType GDScriptParser::_reduce_node_type(Node *p_node) { node_type = _reduce_identifier_type(&base_type, member_id->name, op->line, true); #ifdef DEBUG_ENABLED if (!node_type.has_type) { + _mark_line_as_unsafe(op->line); _add_warning(GDScriptWarning::UNSAFE_PROPERTY_ACCESS, op->line, member_id->name.operator String(), base_type.to_string()); } #endif // DEBUG_ENABLED -- cgit v1.2.3