[Scummvm-cvs-logs] scummvm master -> 4c8b2f1235a7092c539c9b5bc8eb68cbab45ab1c

dreammaster dreammaster at scummvm.org
Sat Aug 8 02:02:18 CEST 2015


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
4c8b2f1235 SHERLOCK: RT: Fix cmdPlaySong opcode


Commit: 4c8b2f1235a7092c539c9b5bc8eb68cbab45ab1c
    https://github.com/scummvm/scummvm/commit/4c8b2f1235a7092c539c9b5bc8eb68cbab45ab1c
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2015-08-07T20:01:23-04:00

Commit Message:
SHERLOCK: RT: Fix cmdPlaySong opcode

Changed paths:
    engines/sherlock/tattoo/tattoo_talk.cpp



diff --git a/engines/sherlock/tattoo/tattoo_talk.cpp b/engines/sherlock/tattoo/tattoo_talk.cpp
index 7aa75b9..7762b48 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;
 






More information about the Scummvm-git-logs mailing list