mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
acessing _numGraphics'th element of GraphicData array is safe
svn-id: r12046
This commit is contained in:
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user