diff options
author | Paul Gilbert | 2014-04-16 21:26:46 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-04-16 21:26:46 -0400 |
commit | cfd49436478c356c7a9baf320d3ae86dc8485361 (patch) | |
tree | a374e0e97f164d1545d19174ca42dad937a5d0e8 /engines | |
parent | 5f44b97d089f6e2db89838b50c685d9307997647 (diff) | |
download | scummvm-rg350-cfd49436478c356c7a9baf320d3ae86dc8485361.tar.gz scummvm-rg350-cfd49436478c356c7a9baf320d3ae86dc8485361.tar.bz2 scummvm-rg350-cfd49436478c356c7a9baf320d3ae86dc8485361.zip |
MADS: Fix for correctly loading animation sprite sets
Diffstat (limited to 'engines')
-rw-r--r-- | engines/mads/animation.cpp | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/engines/mads/animation.cpp b/engines/mads/animation.cpp index 93cc72f613..dd7977225f 100644 --- a/engines/mads/animation.cpp +++ b/engines/mads/animation.cpp @@ -51,23 +51,13 @@ void AAHeader::load(Common::SeekableReadStream *f) { buffer[FILENAME_SIZE - 1] = '\0'; _interfaceFile = Common::String(buffer); - for (int i = 0; i < _spriteSetsCount; ++i) { + for (int i = 0; i < 50; ++i) { f->read(buffer, FILENAME_SIZE); buffer[FILENAME_SIZE - 1] = '\0'; - _spriteSetNames.push_back(Common::String(buffer)); + if (i < _spriteSetsCount) + _spriteSetNames.push_back(Common::String(buffer)); } - f->skip(81); - f->read(buffer, FILENAME_SIZE); - buffer[FILENAME_SIZE - 1] = '\0'; - _lbmFilename = Common::String(buffer); - - f->skip(365); - f->read(buffer, FILENAME_SIZE); - buffer[FILENAME_SIZE - 1] = '\0'; - _spritesFilename = Common::String(buffer); - - f->skip(48); f->read(buffer, FILENAME_SIZE); buffer[FILENAME_SIZE - 1] = '\0'; _soundName = Common::String(buffer); |