mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
Allow assignments between any field types.
This commit is contained in:
parent
75c3653be4
commit
550fff5467
1 changed files with 3 additions and 0 deletions
|
@ -699,6 +699,9 @@ type_assignable (type_t *dst, type_t *src)
|
||||||
// same type
|
// same type
|
||||||
if (dst == src)
|
if (dst == src)
|
||||||
return 1;
|
return 1;
|
||||||
|
// any field = any field
|
||||||
|
if (dst->type == ev_field && src->type == ev_field)
|
||||||
|
return 1;
|
||||||
// id = any class pointer
|
// id = any class pointer
|
||||||
if (dst == &type_id && src->type == ev_pointer
|
if (dst == &type_id && src->type == ev_pointer
|
||||||
&& is_class (src->t.fldptr.type))
|
&& is_class (src->t.fldptr.type))
|
||||||
|
|
Loading…
Reference in a new issue