From 31235218ea5d0bfb2f6f620253024bdeb93e2130 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Thu, 27 Aug 2015 20:34:34 -0400 Subject: SHERLOCK: RT: Reset _npcIndex when loading savegame --- engines/sherlock/tattoo/tattoo_people.cpp | 2 ++ 1 file changed, 2 insertions(+) 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) -- cgit v1.2.3