aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/action.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2014-05-27 08:41:07 -0400
committerPaul Gilbert2014-05-27 08:41:07 -0400
commit0e99e02121d10fdc8d966cab6daced74b280cef9 (patch)
tree44ccfe2debf0af3112038a242a0a53db5c1f12bf /engines/mads/action.cpp
parent787cbe18e806425311b8013d75dfd9de562b9da7 (diff)
downloadscummvm-rg350-0e99e02121d10fdc8d966cab6daced74b280cef9.tar.gz
scummvm-rg350-0e99e02121d10fdc8d966cab6daced74b280cef9.tar.bz2
scummvm-rg350-0e99e02121d10fdc8d966cab6daced74b280cef9.zip
MADS: Fix saving game in the village hut
Diffstat (limited to 'engines/mads/action.cpp')
-rw-r--r--engines/mads/action.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/mads/action.cpp b/engines/mads/action.cpp
index edb5f0f8f2..80480cbdfd 100644
--- a/engines/mads/action.cpp
+++ b/engines/mads/action.cpp
@@ -685,6 +685,10 @@ void MADSAction::synchronize(Common::Serializer &s) {
s.syncAsSint16LE(_statusTextIndex);
s.syncAsSint16LE(_hotspotId);
_savedFields.synchronize(s);
+
+ // TODO: When saving in Rex Village Hut, _senetence size() doesn't match
+ // string length. Find out why not
+ _sentence = Common::String(_sentence.c_str());
s.syncString(_sentence);
s.syncAsSint16LE(_verbType);