Fixed crash on duplicate

This commit is contained in:
andreja6
2018-10-24 11:07:27 -07:00
parent 07a2eb4d98
commit 2c65001536
2 changed files with 4 additions and 3 deletions

View File

@@ -12,9 +12,10 @@ Instance::Instance(void)
Instance::Instance(const Instance &oinst) Instance::Instance(const Instance &oinst)
{ {
setParent(oinst.parent);
name = oinst.name; name = oinst.name;
className = oinst.className; className = oinst.className;
//setParent(oinst.parent);
} }

View File

@@ -25,8 +25,8 @@ PhysicalInstance::PhysicalInstance(void)
PhysicalInstance::PhysicalInstance(const PhysicalInstance &oinst) PhysicalInstance::PhysicalInstance(const PhysicalInstance &oinst)
{ {
Instance::Instance(oinst); Instance::Instance(oinst);
name = oinst.name; //name = oinst.name;
className = "Part"; //className = "Part";
canCollide = oinst.canCollide; canCollide = oinst.canCollide;
setParent(oinst.parent); setParent(oinst.parent);
anchored = oinst.anchored; anchored = oinst.anchored;