mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
fix shape errorcodes
corrects out of bounds flaw
This commit is contained in:
parent
b753c9d91c
commit
f0b218f1e2
|
|
@ -117,7 +117,7 @@ ConsoleSetType(TypeShapeAssetId)
|
|||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
const String ShapeAsset::mErrCodeStrings[] =
|
||||
const String ShapeAsset::mShapeErrCodeStrings[] =
|
||||
{
|
||||
"TooManyVerts",
|
||||
"TooManyBones",
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ public:
|
|||
|
||||
static StringTableEntry smNoShapeAssetFallback;
|
||||
|
||||
static const String mErrCodeStrings[ShapeAssetErrCode::Extended - Parent::Extended + 1];
|
||||
static const String mShapeErrCodeStrings[ShapeAssetErrCode::Extended - Parent::Extended + 1];
|
||||
|
||||
static U32 getAssetErrCode(AssetPtr<ShapeAsset> shapeAsset) { if (shapeAsset) return shapeAsset->mLoadedState; else return 0; }
|
||||
|
||||
|
|
@ -112,7 +112,7 @@ public:
|
|||
{
|
||||
if (errCode < Parent::Extended) return Parent::getAssetErrstrn(errCode);
|
||||
if (errCode > ShapeAssetErrCode::Extended) return "undefined error";
|
||||
return mErrCodeStrings[errCode];
|
||||
return mShapeErrCodeStrings[errCode - Parent::Extended];
|
||||
};
|
||||
|
||||
ShapeAsset();
|
||||
|
|
|
|||
Loading…
Reference in a new issue