Add missing code for ScriptingType copy/move

This commit is contained in:
Wojtek Figat
2020-12-23 12:58:31 +01:00
parent ce6c360d29
commit e242dbf89f

View File

@@ -170,6 +170,10 @@ ScriptingType::ScriptingType(const ScriptingType& other)
Struct.GetField = other.Struct.GetField;
Struct.SetField = other.Struct.SetField;
break;
case ScriptingTypes::Class:
Class.Ctor = other.Class.Ctor;
Class.Dtor = other.Class.Dtor;
break;
case ScriptingTypes::Enum:
break;
default: ;
@@ -210,6 +214,10 @@ ScriptingType::ScriptingType(ScriptingType&& other)
Struct.GetField = other.Struct.GetField;
Struct.SetField = other.Struct.SetField;
break;
case ScriptingTypes::Class:
Class.Ctor = other.Class.Ctor;
Class.Dtor = other.Class.Dtor;
break;
case ScriptingTypes::Enum:
break;
default: ;