MADS: Further synchronization implementation

This commit is contained in:
Paul Gilbert 2014-04-23 21:01:48 -04:00
parent ee1a33946f
commit c1a90cdda1
9 changed files with 55 additions and 5 deletions

View file

@ -1079,4 +1079,12 @@ void UserInterface::scrollInventory() {
_vm->_game->_screenObjects._v8332A = 0;
}
void UserInterface::synchronize(Common::Serializer &s) {
InventoryObjects &invObjects = _vm->_game->_objects;
if (s.isLoading()) {
_selectedInvIndex = invObjects._inventoryList.empty() ? -1 : 0;
}
}
} // End of namespace MADS