GDScript: Add missing type conversions in for range

This commit is contained in:
Danil Alexeev 2025-06-11 20:45:47 +03:00
parent 51b0379e55
commit e2d4469dc2
No known key found for this signature in database
GPG key ID: 5A52F75A8679EC57
4 changed files with 35 additions and 5 deletions

View file

@ -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;