diff options
Diffstat (limited to 'engines/sherlock')
-rw-r--r-- | engines/sherlock/talk.cpp | 4 |
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); |