You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +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.
(cherry picked from commit 64d09b7de5)
This commit is contained in:
committed by
Rémi Verschelde
parent
71a0722035
commit
82b15ab469
@@ -6518,7 +6518,8 @@ GDScriptParser::DataType GDScriptParser::_reduce_node_type(Node *p_node) {
|
|||||||
default: {}
|
default: {}
|
||||||
}
|
}
|
||||||
|
|
||||||
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;
|
return node_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user