aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock
diff options
context:
space:
mode:
authorPaul Gilbert2015-08-07 16:14:00 -0400
committerPaul Gilbert2015-08-07 16:14:00 -0400
commit667209d755e4f6d371d5851ccb18ffb369e50798 (patch)
tree146e615ff855baf70d3cc8eed6bfdbe37b629940 /engines/sherlock
parenteadbe2b8b87777ab92234264a4be990be74f03ad (diff)
downloadscummvm-rg350-667209d755e4f6d371d5851ccb18ffb369e50798.tar.gz
scummvm-rg350-667209d755e4f6d371d5851ccb18ffb369e50798.tar.bz2
scummvm-rg350-667209d755e4f6d371d5851ccb18ffb369e50798.zip
SHERLOCK: RT: Fix loading character graphics for the player
Diffstat (limited to 'engines/sherlock')
-rw-r--r--engines/sherlock/tattoo/tattoo_talk.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sherlock/tattoo/tattoo_talk.cpp b/engines/sherlock/tattoo/tattoo_talk.cpp
index 4fea876586..8ea046168f 100644
--- a/engines/sherlock/tattoo/tattoo_talk.cpp
+++ b/engines/sherlock/tattoo/tattoo_talk.cpp
@@ -403,7 +403,7 @@ OpcodeReturn TattooTalk::cmdPlaySong(const byte *&str) {
}
OpcodeReturn TattooTalk::cmdRestorePeopleSequence(const byte *&str) {
- int npcNum = *++str;
+ int npcNum = *++str - 1;
TattooPeople &people = *(TattooPeople *)_vm->_people;
TattooPerson &person = people[npcNum];
person._misc = 0;
@@ -560,7 +560,7 @@ OpcodeReturn TattooTalk::cmdSetNPCPathPauseLookingHolmes(const byte *&str) {
}
OpcodeReturn TattooTalk::cmdSetNPCPosition(const byte *&str) {
- int npcNum = *++str;
+ int npcNum = *++str - 1;
++str;
TattooPeople &people = *(TattooPeople *)_vm->_people;
TattooPerson &person = people[npcNum];
@@ -710,7 +710,7 @@ OpcodeReturn TattooTalk::cmdSetNPCVerbTarget(const byte *&str) {
}
OpcodeReturn TattooTalk::cmdSetNPCWalkGraphics(const byte *&str) {
- int npcNum = *++str;
+ int npcNum = *++str - 1;
TattooPeople &people = *(TattooPeople *)_vm->_people;
Person &person = people[npcNum];