Fixed crash on duplicate
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user