diff options
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); } |