diff options
-rw-r--r-- | engines/draci/animation.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/draci/animation.cpp b/engines/draci/animation.cpp index 1f8269f97e..01bd9b93a5 100644 --- a/engines/draci/animation.cpp +++ b/engines/draci/animation.cpp @@ -434,7 +434,7 @@ void AnimationManager::sortAnimations() { bool hasChanged; do { - hasChanged = true; + hasChanged = false; cur = _animations.begin(); next = cur; @@ -452,13 +452,13 @@ void AnimationManager::sortAnimations() { _animations.erase(next); insertAnimation(anim); - hasChanged = false; + hasChanged = true; } // Advance to next animation cur = next; } - } while (!hasChanged); + } while (hasChanged); } void AnimationManager::deleteAnimation(int id) { |