aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2015-08-17 19:14:35 -0400
committerPaul Gilbert2015-08-17 19:14:35 -0400
commit39e75d75c6dbc728124ebacfa97937ae6f042e2f (patch)
tree7787dd8e04835becdc5148887f724011c397070b
parent1aba10f9521ab11efe5da711831b137c00625de5 (diff)
downloadscummvm-rg350-39e75d75c6dbc728124ebacfa97937ae6f042e2f.tar.gz
scummvm-rg350-39e75d75c6dbc728124ebacfa97937ae6f042e2f.tar.bz2
scummvm-rg350-39e75d75c6dbc728124ebacfa97937ae6f042e2f.zip
SHERLOCK: RT: Properly crop long speech filenames
-rw-r--r--engines/sherlock/talk.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sherlock/talk.cpp b/engines/sherlock/talk.cpp
index a2d6d8a353..7ecf62cd96 100644
--- a/engines/sherlock/talk.cpp
+++ b/engines/sherlock/talk.cpp
@@ -578,7 +578,7 @@ void Talk::loadTalkFile(const Common::String &filename) {
// Create the base of the sound filename used for talking in Rose Tattoo
if (IS_ROSE_TATTOO && _scriptMoreFlag != 1)
- sound._talkSoundFile = filename + ".";
+ sound._talkSoundFile = Common::String(filename.c_str(), filename.c_str() + 7) + ".";
// Open the talk file for reading
Common::SeekableReadStream *talkStream = res.load(talkFile);