aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/tattoo/tattoo_talk.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sherlock/tattoo/tattoo_talk.cpp')
-rw-r--r--engines/sherlock/tattoo/tattoo_talk.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sherlock/tattoo/tattoo_talk.cpp b/engines/sherlock/tattoo/tattoo_talk.cpp
index 7aa75b97a9..7762b4814b 100644
--- a/engines/sherlock/tattoo/tattoo_talk.cpp
+++ b/engines/sherlock/tattoo/tattoo_talk.cpp
@@ -382,7 +382,7 @@ OpcodeReturn TattooTalk::cmdPlaySong(const byte *&str) {
// Get the name of the song to play
music._currentSongName = "";
str++;
- for (int idx = 0; idx < 8 && str[idx + 1] != '~'; ++idx)
+ for (int idx = 0; idx < 8 && str[idx] != '~'; ++idx)
music._currentSongName += str[idx];
str += 7;