diff options
author | Gregory Montoir | 2003-12-30 23:32:51 +0000 |
---|---|---|
committer | Gregory Montoir | 2003-12-30 23:32:51 +0000 |
commit | 49c67f4d200283dbf8a4baca136cf2ef35f02fa1 (patch) | |
tree | 0c50caee59f2190ab619f4eb9f66ee0989141dbb | |
parent | e669103b5d20a4983250f8e10ed67925d989a549 (diff) | |
download | scummvm-rg350-49c67f4d200283dbf8a4baca136cf2ef35f02fa1.tar.gz scummvm-rg350-49c67f4d200283dbf8a4baca136cf2ef35f02fa1.tar.bz2 scummvm-rg350-49c67f4d200283dbf8a4baca136cf2ef35f02fa1.zip |
acessing _numGraphics'th element of GraphicData array is safe
svn-id: r12046
-rw-r--r-- | queen/logic.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/queen/logic.cpp b/queen/logic.cpp index bb8aae39bf..e756abcd0a 100644 --- a/queen/logic.cpp +++ b/queen/logic.cpp @@ -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; |