diff options
author | Denis Kasak | 2009-07-30 02:16:58 +0000 |
---|---|---|
committer | Denis Kasak | 2009-07-30 02:16:58 +0000 |
commit | 7532845feea721b554fd38f59e5dc28321ea9bfa (patch) | |
tree | ef460a34da9b1b6234f32eea1ad3b4f5c17e0cc6 | |
parent | b124c8b1225627def357b284e43d9890e1fda79a (diff) | |
download | scummvm-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.cpp | 2 |
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; } |