Fix crash when spawning C# object that inherits from abstract C++ class

This commit is contained in:
Wojtek Figat
2021-08-08 19:10:51 +02:00
parent cdca5b4a28
commit 847641f655
2 changed files with 2 additions and 0 deletions

View File

@@ -492,6 +492,7 @@ ScriptingObject* ManagedBinaryModule::ManagedObjectSpawn(const ScriptingObjectSp
ScriptingObject* object = nativeTypePtr->Script.Spawn(params);
if (!object)
{
LOG(Error, "Failed to spawn object of type {0} with native base type {1}.", managedTypePtr->ToString(), nativeTypePtr->ToString());
return nullptr;
}