diff --git a/Engine/source/T3D/assets/ShapeAsset.cpp b/Engine/source/T3D/assets/ShapeAsset.cpp index 1f667fb6f..acf35eaef 100644 --- a/Engine/source/T3D/assets/ShapeAsset.cpp +++ b/Engine/source/T3D/assets/ShapeAsset.cpp @@ -440,9 +440,12 @@ U32 ShapeAsset::getAssetById(StringTableEntry assetId, AssetPtr* sha //Didn't work, so have us fall back to a placeholder asset StringTableEntry noShapeId = StringTable->insert("Core_Rendering:noshape"); shapeAsset->setAssetId(noShapeId); - (*shapeAsset)->mLoadedState = AssetErrCode::UsingFallback; + if (shapeAsset->notNull()) + { + (*shapeAsset)->mLoadedState = AssetErrCode::UsingFallback; return AssetErrCode::UsingFallback; + } return AssetErrCode::Failed; }