diff --git a/tools/qfcc/source/type.c b/tools/qfcc/source/type.c index 9982430ce..2dca3bbf3 100644 --- a/tools/qfcc/source/type.c +++ b/tools/qfcc/source/type.c @@ -699,6 +699,9 @@ type_assignable (type_t *dst, type_t *src) // same type if (dst == src) return 1; + // any field = any field + if (dst->type == ev_field && src->type == ev_field) + return 1; // id = any class pointer if (dst == &type_id && src->type == ev_pointer && is_class (src->t.fldptr.type))