From 7532845feea721b554fd38f59e5dc28321ea9bfa Mon Sep 17 00:00:00 2001 From: Denis Kasak Date: Thu, 30 Jul 2009 02:16:58 +0000 Subject: Fixed sanity check in Animation::setCurrentFrame(). svn-id: r42914 --- engines/draci/animation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/draci/animation.cpp b/engines/draci/animation.cpp index c5c33153ea..84ec6eceab 100644 --- a/engines/draci/animation.cpp +++ b/engines/draci/animation.cpp @@ -258,7 +258,7 @@ uint Animation::currentFrameNum() { void Animation::setCurrentFrame(uint frame) { // Check whether the value is sane - if (frame > _frames.size()) { + if (frame >= _frames.size()) { return; } -- cgit v1.2.3