aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2014-04-06 22:05:18 -0400
committerPaul Gilbert2014-04-06 22:05:18 -0400
commitb435c76b2578ad0650606ba6ad59f56eeb94ee01 (patch)
tree2800a71765b06242230d1f4ccb298c8f6711c2ff
parent2457905ed42820d27264a4beccc9ae45da746c18 (diff)
downloadscummvm-rg350-b435c76b2578ad0650606ba6ad59f56eeb94ee01.tar.gz
scummvm-rg350-b435c76b2578ad0650606ba6ad59f56eeb94ee01.tar.bz2
scummvm-rg350-b435c76b2578ad0650606ba6ad59f56eeb94ee01.zip
MADS: Fix loading of scene sprite set names
-rw-r--r--engines/mads/animation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/mads/animation.cpp b/engines/mads/animation.cpp
index f4fee20de7..f581bf42ce 100644
--- a/engines/mads/animation.cpp
+++ b/engines/mads/animation.cpp
@@ -51,7 +51,7 @@ void AAHeader::load(Common::SeekableReadStream *f) {
buffer[FILENAME_SIZE - 1] = '\0';
_interfaceFile = Common::String(buffer);
- for (int i = 0; i < 10; ++i) {
+ for (int i = 0; i < _spriteSetsCount; ++i) {
f->read(buffer, FILENAME_SIZE);
buffer[FILENAME_SIZE - 1] = '\0';
_spriteSetNames.push_back(Common::String(buffer));