diff options
Diffstat (limited to 'engines/access/room.cpp')
-rw-r--r-- | engines/access/room.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/access/room.cpp b/engines/access/room.cpp index 371b714467..98e9d5ed6f 100644 --- a/engines/access/room.cpp +++ b/engines/access/room.cpp @@ -207,9 +207,11 @@ void Room::loadRoomData(const byte *roomData) { // Load animation data _vm->_animation->freeAnimationData(); - if (roomInfo._animFile._fileNum != -1) - _vm->_animation->_anim = _vm->_files->loadFile(roomInfo._animFile._fileNum, - roomInfo._animFile._subfile); + if (roomInfo._animFile._fileNum != -1) { + byte *data = _vm->_files->loadFile(roomInfo._animFile._fileNum, + roomInfo._animFile._subfile); + _vm->_animation->loadAnimations(data, _vm->_files->_filesize); + } _vm->_scaleI = roomInfo._scaleI; _vm->_screen->_scrollThreshold = roomInfo._scrollThreshold; |