From 00a43bb11c45cfb2e07fa0e79d0eb7bb7ef04c19 Mon Sep 17 00:00:00 2001 From: tyson brochu Date: Thu, 24 Jun 2021 22:46:57 -0400 Subject: [PATCH] Fix an ensure that will always fire #rnx #rb jimmy.andrews #jira UE-118988 [CL 16781238 by tyson brochu in ue5-main branch] --- .../ClothingSystemRuntimeCommon/Private/ClothingAsset.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine/Source/Runtime/ClothingSystemRuntimeCommon/Private/ClothingAsset.cpp b/Engine/Source/Runtime/ClothingSystemRuntimeCommon/Private/ClothingAsset.cpp index b2b51cb22ebd..38dd32fee98f 100644 --- a/Engine/Source/Runtime/ClothingSystemRuntimeCommon/Private/ClothingAsset.cpp +++ b/Engine/Source/Runtime/ClothingSystemRuntimeCommon/Private/ClothingAsset.cpp @@ -317,7 +317,7 @@ bool UClothingAssetCommon::BindToSkeletalMesh( for (uint32 OriginalIndex : IndexView) { const int32 TempIndex = (int32)OriginalIndex - (int32)OriginalSection.BaseVertexIndex; - if (ensure(RenderIndices.IsValidIndex(TempIndex))) + if (ensure(RenderPositions.IsValidIndex(TempIndex))) { RenderIndices.Add(TempIndex); }