aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Kasak2009-07-30 02:16:58 +0000
committerDenis Kasak2009-07-30 02:16:58 +0000
commit7532845feea721b554fd38f59e5dc28321ea9bfa (patch)
treeef460a34da9b1b6234f32eea1ad3b4f5c17e0cc6
parentb124c8b1225627def357b284e43d9890e1fda79a (diff)
downloadscummvm-rg350-7532845feea721b554fd38f59e5dc28321ea9bfa.tar.gz
scummvm-rg350-7532845feea721b554fd38f59e5dc28321ea9bfa.tar.bz2
scummvm-rg350-7532845feea721b554fd38f59e5dc28321ea9bfa.zip
Fixed sanity check in Animation::setCurrentFrame().
svn-id: r42914
-rw-r--r--engines/draci/animation.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}