1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 00:37:15 +01:00

Fix derived class creation.

This commit is contained in:
Sandu Liviu Catalin 2021-03-20 19:58:56 +02:00
parent 88a50cac4e
commit 370c5cfe88

View File

@ -977,7 +977,7 @@ public:
ClassData<C>* cd = *ud; ClassData<C>* cd = *ud;
//if (ClassType<C>::getStaticClassData()->Expired()) { //if (ClassType<C>::getStaticClassData()->Expired()) {
if (ClassType<C>::getStaticClassData()) { if (!ClassType<C>::getStaticClassData()) {
cd->staticData.Init(new StaticClassData<C, B>); cd->staticData.Init(new StaticClassData<C, B>);
cd->staticData->copyFunc = &A::Copy; cd->staticData->copyFunc = &A::Copy;
cd->staticData->className = string(className); cd->staticData->className = string(className);