- Implemented ZScript abstract functions
This commit is contained in:
parent
628d23a688
commit
761dea8640
9 changed files with 82 additions and 22 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue