diff --git a/module/Sqrat/sqratClass.h b/module/Sqrat/sqratClass.h index d7756ef9..9010d07a 100644 --- a/module/Sqrat/sqratClass.h +++ b/module/Sqrat/sqratClass.h @@ -109,7 +109,7 @@ public: //ClassType::getStaticClassData() = cd->staticData; } else { //cd->staticData = ClassType::getStaticClassData().Lock(); - throw Exception("investigate me!"); + throw Exception("investigate me! [Class]"); } HSQOBJECT& classObj = cd->classObj; @@ -976,15 +976,17 @@ public: ClassData* bd = ClassType::getClassData(v); ClassData* cd = *ud; - if (ClassType::getStaticClassData().Expired()) { + //if (ClassType::getStaticClassData()->Expired()) { + if (ClassType::getStaticClassData()) { cd->staticData.Init(new StaticClassData); cd->staticData->copyFunc = &A::Copy; cd->staticData->className = string(className); cd->staticData->baseClass = bd->staticData.Get(); - ClassType::getStaticClassData() = cd->staticData; + //ClassType::getStaticClassData() = cd->staticData; } else { - cd->staticData = ClassType::getStaticClassData().Lock(); + //cd->staticData = ClassType::getStaticClassData().Lock(); + throw Exception("investigate me! [DerivedClass]"); } HSQOBJECT& classObj = cd->classObj;