aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/tattoo
diff options
context:
space:
mode:
authorPaul Gilbert2015-08-27 20:34:34 -0400
committerPaul Gilbert2015-08-27 20:34:34 -0400
commit31235218ea5d0bfb2f6f620253024bdeb93e2130 (patch)
treec283c6a1ba96802779ed963a20d8d94f1271de02 /engines/sherlock/tattoo
parentca3050c9121938a05b33517f9e6672ee1e80b11f (diff)
downloadscummvm-rg350-31235218ea5d0bfb2f6f620253024bdeb93e2130.tar.gz
scummvm-rg350-31235218ea5d0bfb2f6f620253024bdeb93e2130.tar.bz2
scummvm-rg350-31235218ea5d0bfb2f6f620253024bdeb93e2130.zip
SHERLOCK: RT: Reset _npcIndex when loading savegame
Diffstat (limited to 'engines/sherlock/tattoo')
-rw-r--r--engines/sherlock/tattoo/tattoo_people.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/sherlock/tattoo/tattoo_people.cpp b/engines/sherlock/tattoo/tattoo_people.cpp
index bd2ed0eba6..b3f02f4ba9 100644
--- a/engines/sherlock/tattoo/tattoo_people.cpp
+++ b/engines/sherlock/tattoo/tattoo_people.cpp
@@ -995,6 +995,8 @@ void TattooPerson::synchronize(Serializer &s) {
s.syncAsSint32LE(_npcPause);
s.syncAsByte(_lookHolmes);
s.syncAsByte(_updateNPCPath);
+ if (s.isLoading())
+ _npcIndex = 0;
// Verbs
for (int idx = 0; idx < 2; ++idx)