aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsirlemonhead2015-05-12 18:00:35 +0100
committerWillem Jan Palenstijn2015-05-13 14:43:50 +0200
commitcf6276145b78e60d0cc3e20f12b78a16a8091c7d (patch)
treefe1205fde3ca754557932845b626580c7eadd9bf
parenta0467ea60d7eac0839ff88f6fedf50007c7e48d1 (diff)
downloadscummvm-rg350-cf6276145b78e60d0cc3e20f12b78a16a8091c7d.tar.gz
scummvm-rg350-cf6276145b78e60d0cc3e20f12b78a16a8091c7d.tar.bz2
scummvm-rg350-cf6276145b78e60d0cc3e20f12b78a16a8091c7d.zip
SHERLOCK: Fix to correctly increment animation variables
-rw-r--r--engines/sherlock/animation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sherlock/animation.cpp b/engines/sherlock/animation.cpp
index 5c11c4f6fb..de72de63f9 100644
--- a/engines/sherlock/animation.cpp
+++ b/engines/sherlock/animation.cpp
@@ -153,7 +153,7 @@ void Animation::setPrologueNames(const char *const *names, int count) {
void Animation::setPrologueFrames(const int *frames, int count, int maxFrames) {
_prologueFrames.resize(count);
- for (int idx = 0; idx < count; ++idx, frames + maxFrames) {
+ for (int idx = 0; idx < count; ++idx, frames += maxFrames) {
_prologueFrames[idx].resize(maxFrames);
Common::copy(frames, frames + maxFrames, &_prologueFrames[idx][0]);
}
@@ -174,7 +174,7 @@ void Animation::setTitleNames(const char *const *names, int count) {
void Animation::setTitleFrames(const int *frames, int count, int maxFrames) {
_titleFrames.resize(count);
- for (int idx = 0; idx < count; ++idx, frames + maxFrames) {
+ for (int idx = 0; idx < count; ++idx, frames += maxFrames) {
_titleFrames[idx].resize(maxFrames);
Common::copy(frames, frames + maxFrames, &_titleFrames[idx][0]);
}