diff options
author | Robert Špalek | 2009-09-27 18:51:07 +0000 |
---|---|---|
committer | Robert Špalek | 2009-09-27 18:51:07 +0000 |
commit | cf1031fc63a19bfebc82744ab4b1ed55a3868408 (patch) | |
tree | bdc1f8f98718178174f3cd6a956cfda29c463246 | |
parent | fc2bb50600e393cdb3d1e868b9274a43d05bca21 (diff) | |
download | scummvm-rg350-cf1031fc63a19bfebc82744ab4b1ed55a3868408.tar.gz scummvm-rg350-cf1031fc63a19bfebc82744ab4b1ed55a3868408.tar.bz2 scummvm-rg350-cf1031fc63a19bfebc82744ab4b1ed55a3868408.zip |
Fix renumbering of animation indexes
svn-id: r44414
-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 746d577d3a..e3f87feb8b 100644 --- a/engines/draci/animation.cpp +++ b/engines/draci/animation.cpp @@ -515,8 +515,8 @@ void AnimationManager::deleteAnimation(int id) { // Iterate the second time to decrease indexes greater than the deleted animation index for (it = _animations.begin(); it != _animations.end(); ++it) { - if ((*it)->getIndex() == index && (*it)->getIndex() != kIgnoreIndex) { - (*it)->setIndex(index-1); + if ((*it)->getIndex() > index && (*it)->getIndex() != kIgnoreIndex) { + (*it)->setIndex((*it)->getIndex() - 1); } } |