diff options
author | Denis Kasak | 2009-07-18 12:08:18 +0000 |
---|---|---|
committer | Denis Kasak | 2009-07-18 12:08:18 +0000 |
commit | cb185f18cde68c40590959a700226e24912d2688 (patch) | |
tree | dd036b95a821933aed3edc8975aa85fa537b448c /engines | |
parent | a44cda552561d13a596acafa5b8d1ce918585d92 (diff) | |
download | scummvm-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')
-rw-r--r-- | engines/draci/animation.cpp | 4 |
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); } |