aboutsummaryrefslogtreecommitdiff
path: root/engines/draci/animation.cpp
diff options
context:
space:
mode:
authorDenis Kasak2009-07-18 12:08:18 +0000
committerDenis Kasak2009-07-18 12:08:18 +0000
commitcb185f18cde68c40590959a700226e24912d2688 (patch)
treedd036b95a821933aed3edc8975aa85fa537b448c /engines/draci/animation.cpp
parenta44cda552561d13a596acafa5b8d1ce918585d92 (diff)
downloadscummvm-rg350-cb185f18cde68c40590959a700226e24912d2688.tar.gz
scummvm-rg350-cb185f18cde68c40590959a700226e24912d2688.tar.bz2
scummvm-rg350-cb185f18cde68c40590959a700226e24912d2688.zip
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
Diffstat (limited to 'engines/draci/animation.cpp')
-rw-r--r--engines/draci/animation.cpp4
1 files changed, 2 insertions, 2 deletions
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);
}