acessing _numGraphics'th element of GraphicData array is safe

svn-id: r12046
This commit is contained in:
Gregory Montoir
2003-12-30 23:32:51 +00:00
parent e669103b5d
commit 49c67f4d20
+2 -2
View File
@@ -345,8 +345,8 @@ uint16 Logic::findBob(uint16 obj) {
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;