diff options
Diffstat (limited to 'engines/sherlock/talk.cpp')
-rw-r--r-- | engines/sherlock/talk.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/engines/sherlock/talk.cpp b/engines/sherlock/talk.cpp index 83596e4e85..1b12c6afb4 100644 --- a/engines/sherlock/talk.cpp +++ b/engines/sherlock/talk.cpp @@ -468,8 +468,15 @@ void Talk::talk(int objNum) { break; } } - if (select == -1) - error("No entry matched all required flags"); + + if (select == -1) { + freeTalkVars(); + if (!scumm_strnicmp(talkFilename.c_str(), "PATH", 4)) + error("No entries found to execute in path file"); + + nothingToSay(); + return; + } // See if the statement is a stealth mode reply Statement &statement = _statements[select]; |