Skip to content

Commit

Permalink
ACCESS: Fix restoring screen after offering a character an inventory …
Browse files Browse the repository at this point in the history
…item
  • Loading branch information
dreammaster committed Dec 13, 2014
1 parent 4448929 commit 4ce87a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion engines/access/inventory.cpp
Expand Up @@ -113,7 +113,7 @@ int InventoryManager::newDisplayInv() {
_invModeFlag = true;
_vm->_timers.saveTimers();

if (room._tile && !_invRefreshFlag) {
if (!room._tile && !_invRefreshFlag) {
saveScreens();
}

Expand Down Expand Up @@ -360,6 +360,9 @@ void InventoryManager::restoreScreens() {
_vm->_buffer1.w = _vm->_buffer1.pitch;
_savedBuffer1.copyTo(&_vm->_buffer1);
_savedScreen.copyTo(_vm->_screen);

_savedBuffer1.free();
_savedScreen.free();
}

void InventoryManager::outlineIcon(int itemIndex) {
Expand Down
1 change: 1 addition & 0 deletions engines/access/room.cpp
Expand Up @@ -163,6 +163,7 @@ void Room::clearRoom() {
_vm->_scripts->freeScriptData();
_vm->freeCells();
freePlayField();
freeTileData();
_vm->freeInactiveData();
_vm->_player->freeSprites();
}
Expand Down

0 comments on commit 4ce87a5

Please sign in to comment.