mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
GDScript: Add missing type conversions in for range
This commit is contained in:
parent
51b0379e55
commit
e2d4469dc2
4 changed files with 35 additions and 5 deletions
|
|
@ -234,6 +234,19 @@ public:
|
|||
|
||||
GDScriptDataType() = default;
|
||||
|
||||
bool operator==(const GDScriptDataType &p_other) const {
|
||||
return kind == p_other.kind &&
|
||||
has_type == p_other.has_type &&
|
||||
builtin_type == p_other.builtin_type &&
|
||||
native_type == p_other.native_type &&
|
||||
(script_type == p_other.script_type || script_type_ref == p_other.script_type_ref) &&
|
||||
container_element_types == p_other.container_element_types;
|
||||
}
|
||||
|
||||
bool operator!=(const GDScriptDataType &p_other) const {
|
||||
return !(*this == p_other);
|
||||
}
|
||||
|
||||
void operator=(const GDScriptDataType &p_other) {
|
||||
kind = p_other.kind;
|
||||
has_type = p_other.has_type;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue