diff options
author | Paul Gilbert | 2014-04-23 21:01:48 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-04-23 21:01:48 -0400 |
commit | c1a90cdda1f1424cb9b6b2e91b82c47cf0913335 (patch) | |
tree | ec98a3d3e3a562488484de697773b4d240140413 /engines/mads/user_interface.cpp | |
parent | ee1a33946fb8f7b61d37e15285e1c5f21f012aa0 (diff) | |
download | scummvm-rg350-c1a90cdda1f1424cb9b6b2e91b82c47cf0913335.tar.gz scummvm-rg350-c1a90cdda1f1424cb9b6b2e91b82c47cf0913335.tar.bz2 scummvm-rg350-c1a90cdda1f1424cb9b6b2e91b82c47cf0913335.zip |
MADS: Further synchronization implementation
Diffstat (limited to 'engines/mads/user_interface.cpp')
-rw-r--r-- | engines/mads/user_interface.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/mads/user_interface.cpp b/engines/mads/user_interface.cpp index 493804c923..9a63ac32ad 100644 --- a/engines/mads/user_interface.cpp +++ b/engines/mads/user_interface.cpp @@ -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 |