From b146c276234fb9f372f71245d40fbeb53a35fbfe Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 14 Jul 2007 18:21:33 +0000 Subject: [PATCH] fix valgrind overlapping memcpy warning (this shouldn't be needed) --- stepmania/src/Actor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stepmania/src/Actor.cpp b/stepmania/src/Actor.cpp index 7931c3538c..ae28356b12 100644 --- a/stepmania/src/Actor.cpp +++ b/stepmania/src/Actor.cpp @@ -745,7 +745,8 @@ void Actor::StopTweening() void Actor::FinishTweening() { - m_current = DestTweenState(); + if( !m_Tweens.empty() ) + m_current = DestTweenState(); StopTweening(); }