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:
parent
88a50cac4e
commit
370c5cfe88
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user