Fix an ensure that will always fire

#rnx
#rb jimmy.andrews
#jira UE-118988

[CL 16781238 by tyson brochu in ue5-main branch]
This commit is contained in:
tyson brochu
2021-06-24 22:46:57 -04:00
parent f672bd31a1
commit 00a43bb11c

View File

@@ -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);
}