[Scummvm-cvs-logs] SF.net SVN: scummvm:[42914] scummvm/branches/gsoc2009-draci/engines/draci/ animation.cpp

dkasak13 at users.sourceforge.net dkasak13 at users.sourceforge.net
Thu Jul 30 04:16:59 CEST 2009


Revision: 42914
          http://scummvm.svn.sourceforge.net/scummvm/?rev=42914&view=rev
Author:   dkasak13
Date:     2009-07-30 02:16:58 +0000 (Thu, 30 Jul 2009)

Log Message:
-----------
Fixed sanity check in Animation::setCurrentFrame().

Modified Paths:
--------------
    scummvm/branches/gsoc2009-draci/engines/draci/animation.cpp

Modified: scummvm/branches/gsoc2009-draci/engines/draci/animation.cpp
===================================================================
--- scummvm/branches/gsoc2009-draci/engines/draci/animation.cpp	2009-07-30 01:12:07 UTC (rev 42913)
+++ scummvm/branches/gsoc2009-draci/engines/draci/animation.cpp	2009-07-30 02:16:58 UTC (rev 42914)
@@ -258,7 +258,7 @@
 void Animation::setCurrentFrame(uint frame) {
 
 	// Check whether the value is sane
-	if (frame > _frames.size()) {
+	if (frame >= _frames.size()) {
 		return;
 	}
 


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