From 370c5cfe88a3f8042c4f01dae910dbbafadc6716 Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Sat, 20 Mar 2021 19:58:56 +0200 Subject: [PATCH] Fix derived class creation. --- module/Sqrat/sqratClass.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/Sqrat/sqratClass.h b/module/Sqrat/sqratClass.h index 9010d07a..70ff92fc 100644 --- a/module/Sqrat/sqratClass.h +++ b/module/Sqrat/sqratClass.h @@ -977,7 +977,7 @@ public: ClassData* cd = *ud; //if (ClassType::getStaticClassData()->Expired()) { - if (ClassType::getStaticClassData()) { + if (!ClassType::getStaticClassData()) { cd->staticData.Init(new StaticClassData); cd->staticData->copyFunc = &A::Copy; cd->staticData->className = string(className);