From 90802cedbc8a75ec6c6bf297f01fb357ab5fcb03 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Fri, 31 Jul 2015 20:07:03 -0400 Subject: SHERLOCK: RT: Fix saving so Watson's walk sequences can be set on loading --- engines/sherlock/tattoo/tattoo_people.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/engines/sherlock/tattoo/tattoo_people.cpp b/engines/sherlock/tattoo/tattoo_people.cpp index 94a40780e6..cc5872e8c8 100644 --- a/engines/sherlock/tattoo/tattoo_people.cpp +++ b/engines/sherlock/tattoo/tattoo_people.cpp @@ -971,7 +971,14 @@ void TattooPerson::synchronize(Serializer &s) { s.syncAsSint32LE(_position.x); s.syncAsSint32LE(_position.y); s.syncAsSint16LE(_sequenceNumber); - s.syncAsSint16LE(_type); + + if (s.isSaving()) { + SpriteType type = (_type == INVALID && _walkLoaded) ? HIDDEN_CHARACTER : _type; + s.syncAsSint16LE(type); + } else { + s.syncAsSint16LE(_type); + } + s.syncString(_walkVGSName); s.syncString(_description); s.syncString(_examine); -- cgit v1.2.3