diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-04-21 16:19:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-21 16:19:34 +0200 |
commit | a5a9bf6a19a2f0b6b8efab32bc465e8eef6f4f55 (patch) | |
tree | fa38bde0c18de3d4da6930f0d14f73a31b1bd760 | |
parent | 9cad835880e066f3e0848f3e0aee04b4e2eedf26 (diff) | |
parent | 0780ad2800aeeb26c02871d0a6242f68097c69b2 (diff) |
Merge pull request #37955 from ThakeeNathees/lin-unsafe-base-know-index-unkonwn
Line marked unsafe when base known and index unkonwn
-rw-r--r-- | modules/gdscript/gdscript_parser.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp index 1c075fb6db..3ce56248e4 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 |