mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-29 12:10:48 +00:00
make it so id can be assigned to any class or object pointer
This commit is contained in:
parent
4a34960d95
commit
b94077200f
1 changed files with 2 additions and 0 deletions
|
@ -526,6 +526,8 @@ type_assignable (type_t *dst, type_t *src)
|
|||
//printf ("%s %s\n", dst_class->class_name, src_class->class_name);
|
||||
if (!dst_class || dst_class == &class_id)
|
||||
return 1;
|
||||
if (!src_class || src_class == &class_id)
|
||||
return 1;
|
||||
while (dst_class != src_class && src_class) {
|
||||
src_class = src_class->super_class;
|
||||
//if (src_class)
|
||||
|
|
Loading…
Reference in a new issue