Added new batch of script object icons + some fixes

This commit is contained in:
parax0
2016-01-02 11:03:33 -07:00
parent 78400b7072
commit 37fd93d10e
65 changed files with 103 additions and 90 deletions

View File

@@ -46,12 +46,12 @@ CModel* CAreaAttributes::SkyModel()
switch (mGame)
{
case ePrime:
return (CModel*) static_cast<TFileProperty*>(pBaseStruct->PropertyByIndex(7))->Get().RawPointer();
case eEchoesDemo:
case eEchoes:
return (CModel*) static_cast<TFileProperty*>(pBaseStruct->PropertyByID(0xD208C9FA))->Get().RawPointer();
case eCorruptionProto:
case eCorruption:
return (CModel*) static_cast<TFileProperty*>(pBaseStruct->PropertyByIndex(8))->Get().RawPointer();
return (CModel*) static_cast<TFileProperty*>(pBaseStruct->PropertyByID(0xD208C9FA))->Get().RawPointer();
default:
return nullptr;
}

View File

@@ -38,7 +38,7 @@ public:
};
/*
* __CProperty is a template subclass for actual properties.
* TTypedProperty is a template subclass for actual properties.
*/
template <typename PropType, EPropertyType TypeEnum, class ValueClass>
class TTypedProperty : public IProperty