From 49c67f4d200283dbf8a4baca136cf2ef35f02fa1 Mon Sep 17 00:00:00 2001 From: Gregory Montoir Date: Tue, 30 Dec 2003 23:32:51 +0000 Subject: acessing _numGraphics'th element of GraphicData array is safe svn-id: r12046 --- queen/logic.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'queen') 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; -- cgit v1.2.3