1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

GDScript: Fix type resolution not being return in some cases

Some situations caused the parser node type to not being update when
trying to resolve the type, returning invalid data and breaking the
parsing when it shouldn't. This patch fix the behavior.
This commit is contained in:
George Marques
2019-09-24 18:03:50 -03:00
parent dd3e17588e
commit 64d09b7de5

View File

@@ -6700,7 +6700,8 @@ GDScriptParser::DataType GDScriptParser::_reduce_node_type(Node *p_node) {
}
}
p_node->set_datatype(_resolve_type(node_type, p_node->line));
node_type = _resolve_type(node_type, p_node->line);
p_node->set_datatype(node_type);
return node_type;
}