aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/animation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/mads/animation.cpp')
-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));