[Scummvm-cvs-logs] CVS: scummvm/queen logic.cpp,1.150,1.151
Gregory Montoir
cyx at users.sourceforge.net
Tue Dec 30 15:33:03 CET 2003
Update of /cvsroot/scummvm/scummvm/queen
In directory sc8-pr-cvs1:/tmp/cvs-serv20091/queen
Modified Files:
logic.cpp
Log Message:
acessing _numGraphics'th element of GraphicData array is safe
Index: logic.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/queen/logic.cpp,v
retrieving revision 1.150
retrieving revision 1.151
diff -u -d -r1.150 -r1.151
--- logic.cpp 30 Dec 2003 21:06:22 -0000 1.150
+++ logic.cpp 30 Dec 2003 23:32:51 -0000 1.151
@@ -345,8 +345,8 @@
img -= 5000;
}
- if (img >= _numGraphics)
- warning("img (%i) >= _numGraphics (%i)", img, _numGraphics);
+ if (img > _numGraphics)
+ warning("img (%i) > _numGraphics (%i)", img, _numGraphics);
if(_graphicData[img].lastFrame != 0) {
++idxAnimated;
More information about the Scummvm-git-logs
mailing list