aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2015-04-14 20:30:02 -0500
committerPaul Gilbert2015-04-14 20:30:02 -0500
commitb14debc20769c7c6e8b0d5fb1d189e319e5ad6e4 (patch)
tree3462a90ff4bf667dfb9df00b00d854615f320ae3 /engines
parentf4af9fdbfd4531fd59c9f51785d573f6a128639e (diff)
downloadscummvm-rg350-b14debc20769c7c6e8b0d5fb1d189e319e5ad6e4.tar.gz
scummvm-rg350-b14debc20769c7c6e8b0d5fb1d189e319e5ad6e4.tar.bz2
scummvm-rg350-b14debc20769c7c6e8b0d5fb1d189e319e5ad6e4.zip
SHERLOCK: Fix talking to Watson when he's sitting down
Diffstat (limited to 'engines')
-rw-r--r--engines/sherlock/talk.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sherlock/talk.cpp b/engines/sherlock/talk.cpp
index 49e0677b80..73bf9b5fb3 100644
--- a/engines/sherlock/talk.cpp
+++ b/engines/sherlock/talk.cpp
@@ -591,8 +591,8 @@ void Talk::loadTalkFile(const Common::String &filename) {
}
const char *chP = strchr(filename.c_str(), '.');
- Common::String talkFile = !chP ? filename + ".tlk" :
- Common::String(filename.c_str(), chP) + ".tlk";
+ Common::String talkFile = chP ? Common::String(filename.c_str(), chP) + ".tlk" :
+ Common::String(filename.c_str(), filename.c_str() + 7) + ".tlk";
// Open the talk file for reading
Common::SeekableReadStream *talkStream = res.load(talkFile);