- Implemented ZScript abstract functions

This commit is contained in:
Player701 2020-10-10 11:24:49 +03:00 committed by Christoph Oelckers
commit 761dea8640
9 changed files with 82 additions and 22 deletions

View file

@ -435,7 +435,7 @@ DObject *PClass::CreateNew()
else
memset (mem, 0, Size);
if (ConstructNative == nullptr)
if (ConstructNative == nullptr || bAbstract)
{
M_Free(mem);
I_Error("Attempt to instantiate abstract class %s.", TypeName.GetChars());