diff --git a/Source/Engine/Animations/Graph/AnimGraph.Base.cpp b/Source/Engine/Animations/Graph/AnimGraph.Base.cpp index 204026724..4d7ae9363 100644 --- a/Source/Engine/Animations/Graph/AnimGraph.Base.cpp +++ b/Source/Engine/Animations/Graph/AnimGraph.Base.cpp @@ -224,7 +224,7 @@ bool AnimGraphBase::onNodeLoaded(Node* n) // Store triangles vertices indices (map the back to the anim node slots) n->Data.MultiBlend2D.TrianglesCount = triangles.Count(); - n->Data.MultiBlend2D.Triangles = (ANIM_GRAPH_MULTI_BLEND_INDEX*)Allocator::Allocate(triangles.Count() * 3 - sizeof(ANIM_GRAPH_MULTI_BLEND_INDEX)); + n->Data.MultiBlend2D.Triangles = (ANIM_GRAPH_MULTI_BLEND_INDEX*)Allocator::Allocate(triangles.Count() * 3 * sizeof(ANIM_GRAPH_MULTI_BLEND_INDEX)); for (int32 i = 0, t = 0; i < triangles.Count(); i++) { n->Data.MultiBlend2D.Triangles[t++] = vertexToAnim[triangles[i].Indices[0]];