aboutsummaryrefslogtreecommitdiff
path: root/engines/access/amazon/amazon_room.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/access/amazon/amazon_room.cpp')
-rw-r--r--engines/access/amazon/amazon_room.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/access/amazon/amazon_room.cpp b/engines/access/amazon/amazon_room.cpp
index 227fc474cf..39cea9ae62 100644
--- a/engines/access/amazon/amazon_room.cpp
+++ b/engines/access/amazon/amazon_room.cpp
@@ -77,7 +77,9 @@ void AmazonRoom::reloadRoom() {
void AmazonRoom::reloadRoom1() {
if (_vm->_player->_roomNumber == 29 || _vm->_player->_roomNumber == 31
|| _vm->_player->_roomNumber == 42 || _vm->_player->_roomNumber == 44) {
- _vm->_inactive = _vm->_files->loadFile("MAYA.LZ");
+ Resource *spriteData = _vm->_files->loadFile("MAYA.LZ");
+ _vm->_inactive._spritesPtr = new SpriteResource(_vm, spriteData);
+ delete spriteData;
_vm->_currentCharFlag = false;
}