[Scummvm-cvs-logs] SF.net SVN: scummvm:[44414] scummvm/trunk/engines/draci/animation.cpp

spalek at users.sourceforge.net spalek at users.sourceforge.net
Sun Sep 27 20:51:07 CEST 2009


Revision: 44414
          http://scummvm.svn.sourceforge.net/scummvm/?rev=44414&view=rev
Author:   spalek
Date:     2009-09-27 18:51:07 +0000 (Sun, 27 Sep 2009)

Log Message:
-----------
Fix renumbering of animation indexes

Modified Paths:
--------------
    scummvm/trunk/engines/draci/animation.cpp

Modified: scummvm/trunk/engines/draci/animation.cpp
===================================================================
--- scummvm/trunk/engines/draci/animation.cpp	2009-09-27 18:11:06 UTC (rev 44413)
+++ scummvm/trunk/engines/draci/animation.cpp	2009-09-27 18:51:07 UTC (rev 44414)
@@ -515,8 +515,8 @@
 
 	// 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);
 		}
 	}
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list