diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-11-15 13:31:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-15 13:31:32 +0100 |
commit | 98caeb635c2e4d48e0d6d6dbd82af183ab83f894 (patch) | |
tree | 12eaba399727f867e9209ffc28ec166aaa0c4e35 /modules | |
parent | fea3890e1e994257a27cbf7480d8d4cdb037cfa6 (diff) | |
parent | 92549612973a4c474fcb8fbb778e6a4aef48a60f (diff) |
Merge pull request #33632 from lupoDharkael/ternary-check
Parser: Check all the arguments of the ternary operator
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gdscript/gdscript_parser.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp index 74b9440b3a..6ef3ab67ae 100644 --- a/modules/gdscript/gdscript_parser.cpp +++ b/modules/gdscript/gdscript_parser.cpp @@ -6466,6 +6466,8 @@ GDScriptParser::DataType GDScriptParser::_reduce_node_type(Node *p_node) { DataType true_type = _reduce_node_type(op->arguments[1]); DataType false_type = _reduce_node_type(op->arguments[2]); + // Check arguments[0] errors. + _reduce_node_type(op->arguments[0]); // If types are equal, then the expression is of the same type // If they are compatible, return the broader type |