Explorar o código

bugfix: remap virtuals after changing type on dynobj

ncannasse %!s(int64=7) %!d(string=hai) anos
pai
achega
44be9052c0
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/std/obj.c

+ 1 - 0
src/std/obj.c

@@ -787,6 +787,7 @@ static void *hl_obj_lookup_set( vdynamic *d, int hfield, hl_type *t, hl_type **f
 					f = hl_dynobj_add_field(o,hfield,t);
 				} else {
 					f->t = t;
+					hl_dynobj_remap_virtuals(o,f,0);
 				}
 			}
 			*ft = f->t;