Containers
- Fixed `clone(Container)` implementation for `Struct` whereby it would not parent the newly created copy
This commit is contained in:
parent
9b55b3dec4
commit
32056803d4
|
@ -283,6 +283,9 @@ public class Struct : Type, Container, MCloneable
|
|||
clonedStruct.addStatement(clonedStmt);
|
||||
}
|
||||
|
||||
// Parent ourselves to the given parent
|
||||
clonedStruct.parentTo(newParent);
|
||||
|
||||
return clonedStruct;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue