mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-28 12:46:56 +00:00
SHERLOCK: Fix to correctly increment animation variables
This commit is contained in:
parent
a0467ea60d
commit
cf6276145b
@ -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]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user