Disallow creation of abstract classes outside of their own class (this is so that modders can create their own factory methods, not just for native)

This commit is contained in:
ZZYZX 2017-02-16 02:39:49 +02:00
commit 7d3663500f
4 changed files with 19 additions and 4 deletions

View file

@ -205,7 +205,7 @@ enum EObjectFlags
OF_Transient = 1 << 11, // Object should not be archived (references to it will be nulled on disk)
OF_Spawned = 1 << 12, // Thinker was spawned at all (some thinkers get deleted before spawning)
OF_Released = 1 << 13, // Object was released from the GC system and should not be processed by GC function
OF_Abstract = 1 << 14, // Marks a class that cannot be created with CreateNew
OF_Abstract = 1 << 14, // Marks a class that cannot be created with new() function
};
template<class T> class TObjPtr;