Instances call constructor of base class

This commit is contained in:
andreja6
2018-10-24 11:02:13 -07:00
parent ea072e424a
commit 07a2eb4d98
7 changed files with 10 additions and 2 deletions

View File

@@ -4,6 +4,7 @@
PhysicalInstance::PhysicalInstance(void)
{
Instance::Instance();
name = "Default PhysicalInstance";
className = "Part";
canCollide = true;
@@ -23,6 +24,7 @@ PhysicalInstance::PhysicalInstance(void)
PhysicalInstance::PhysicalInstance(const PhysicalInstance &oinst)
{
Instance::Instance(oinst);
name = oinst.name;
className = "Part";
canCollide = oinst.canCollide;