Revert removing of function call in gd_parser

The function call was removed in #5538 because of the unused return value,
but the function itself has side effects and the absence of the call was
causing crashes.
This commit is contained in:
George Marques 2016-07-08 22:12:50 -03:00
parent ca009ac4af
commit 4bf31b3f3d
No known key found for this signature in database
GPG Key ID: 046BD46A3201E43D

View File

@ -514,6 +514,7 @@ GDParser::Node* GDParser::_parse_expression(Node *p_parent,bool p_static,bool p_
} else if (/*tokenizer->get_token()==GDTokenizer::TK_OP_ADD ||*/ tokenizer->get_token()==GDTokenizer::TK_OP_SUB || tokenizer->get_token()==GDTokenizer::TK_OP_NOT || tokenizer->get_token()==GDTokenizer::TK_OP_BIT_INVERT) {
//single prefix operators like !expr -expr ++expr --expr
alloc_node<OperatorNode>();
Expression e;
e.is_op=true;