aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorMartin Kiewitz2009-12-09 07:28:04 +0000
committerMartin Kiewitz2009-12-09 07:28:04 +0000
commit7e1bf3fb4b0375c90a4adf3bc305c5b7aef0a5d3 (patch)
tree7af14c86f440bb4b1887fb819ee457247b6cb527 /engines/sci
parent8ec098d016c80e79793815bca12282ea338bad6a (diff)
downloadscummvm-rg350-7e1bf3fb4b0375c90a4adf3bc305c5b7aef0a5d3.tar.gz
scummvm-rg350-7e1bf3fb4b0375c90a4adf3bc305c5b7aef0a5d3.tar.bz2
scummvm-rg350-7e1bf3fb4b0375c90a4adf3bc305c5b7aef0a5d3.zip
SCI: Save/LoadGame Common::Rect saving now portable
svn-id: r46304
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/engine/savegame.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/sci/engine/savegame.cpp b/engines/sci/engine/savegame.cpp
index 0f88f3f9aa..aa7cdec349 100644
--- a/engines/sci/engine/savegame.cpp
+++ b/engines/sci/engine/savegame.cpp
@@ -347,7 +347,10 @@ void EngineState::saveLoadWithSerializer(Common::Serializer &s) {
if (s.isSaving())
picPortRect = _gui->getPortPic(picPortTop, picPortLeft);
- s.syncBytes((byte *)&picPortRect, sizeof(picPortRect));
+ s.syncAsSint16LE(picPortRect.top);
+ s.syncAsSint16LE(picPortRect.left);
+ s.syncAsSint16LE(picPortRect.bottom);
+ s.syncAsSint16LE(picPortRect.right);
s.syncAsSint16LE(picPortTop);
s.syncAsSint16LE(picPortLeft);