From cb185f18cde68c40590959a700226e24912d2688 Mon Sep 17 00:00:00 2001 From: Denis Kasak Date: Sat, 18 Jul 2009 12:08:18 +0000 Subject: Fixed bug which caused the dragon to be animated with the wrong Z coordinate for short periods of time when moved to a new location. svn-id: r42586 --- engines/draci/animation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/draci/animation.cpp') diff --git a/engines/draci/animation.cpp b/engines/draci/animation.cpp index 0d56ea810f..b5f0d6b806 100644 --- a/engines/draci/animation.cpp +++ b/engines/draci/animation.cpp @@ -294,8 +294,8 @@ void AnimationManager::sortAnimations() { // If we find an animation out of order, reinsert it if ((*next)->getZ() < (*cur)->getZ()) { - Animation *anim = *cur; - _animations.erase(cur); + Animation *anim = *next; + _animations.erase(next); insertAnimation(anim); } -- cgit v1.2.3