mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-10-24 06:27:10 +02:00
Fix derived class creation.
This commit is contained in:
1 parent
88a50cac4e
commit
370c5cfe88
1 file changed
+1
-1
@@ -977,7 +977,7 @@ public:
|
||||
ClassData<C>* cd = *ud;
|
||||
|
||||
//if (ClassType<C>::getStaticClassData()->Expired()) {
|
||||
if (ClassType<C>::getStaticClassData()) {
|
||||
if (!ClassType<C>::getStaticClassData()) {
|
||||
cd->staticData.Init(new StaticClassData<C, B>);
|
||||
cd->staticData->copyFunc = &A::Copy;
|
||||
cd->staticData->className = string(className);
|
||||
|
||||
Reference in new issue
Block a user