From 5f3d07807c06131e74853ddc99a1b144fbec8e4e Mon Sep 17 00:00:00 2001 From: Kyzentun Date: Thu, 8 Jan 2015 04:26:39 -0700 Subject: [PATCH] Fixed vert index math in SetVertsFromSplinesInternal --- src/ActorMultiVertex.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ActorMultiVertex.cpp b/src/ActorMultiVertex.cpp index c4f24890ce..8d0ffdf2b9 100644 --- a/src/ActorMultiVertex.cpp +++ b/src/ActorMultiVertex.cpp @@ -321,9 +321,9 @@ void ActorMultiVertex::SetVertsFromSplinesInternal(size_t num_splines, size_t of { vector& verts= AMV_DestTweenState().vertices; size_t first= AMV_DestTweenState().FirstToDraw + offset; - size_t num_verts= AMV_DestTweenState().GetSafeNumToDraw(AMV_DestTweenState()._DrawMode, AMV_DestTweenState().NumToDraw); + size_t num_verts= AMV_DestTweenState().GetSafeNumToDraw(AMV_DestTweenState()._DrawMode, AMV_DestTweenState().NumToDraw) - offset; vector tper(num_splines, 0.0f); - float num_parts= static_cast(num_verts - offset) / + float num_parts= static_cast(num_verts) / static_cast(num_splines); for(size_t i= 0; i < num_splines; ++i) {