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

@@ -46,6 +46,7 @@ typedef Dictionary<Guid, Actor*, HeapAllocation> ActorsLookup;
#define DECLARE_SCENE_OBJECT_ABSTRACT(type) \
DECLARE_SCRIPTING_TYPE_NO_SPAWN(type); \
static type* Spawn(const SpawnParams& params) { return nullptr; } \
explicit type(const SpawnParams& params)
#define DECLARE_SCENE_OBJECT_NO_SPAWN(type) \