aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock
diff options
context:
space:
mode:
authorPaul Gilbert2016-09-03 15:44:58 -0400
committerPaul Gilbert2016-09-03 15:44:58 -0400
commita69eebe53b2add4e98e3c875180e13c194b9d73b (patch)
treec5f1cfc3f840300ece83c17f25be47421bcb788a /engines/sherlock
parent8e8199f6afd771749308aef40f307f000d7a54e7 (diff)
downloadscummvm-rg350-a69eebe53b2add4e98e3c875180e13c194b9d73b.tar.gz
scummvm-rg350-a69eebe53b2add4e98e3c875180e13c194b9d73b.tar.bz2
scummvm-rg350-a69eebe53b2add4e98e3c875180e13c194b9d73b.zip
SHERLOCK: SS: Fix German journal crash moving tobacco box
Diffstat (limited to 'engines/sherlock')
-rw-r--r--engines/sherlock/journal.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/sherlock/journal.cpp b/engines/sherlock/journal.cpp
index 8763af31dd..7c2d1c263a 100644
--- a/engines/sherlock/journal.cpp
+++ b/engines/sherlock/journal.cpp
@@ -438,8 +438,9 @@ void Journal::loadJournalFile(bool alreadyLoaded) {
}
}
- // Is it a control character?
- if (isPrintable(c)) {
+ if (c == '\r' || c == '\n') {
+ journalString += '\n';
+ } else if (isPrintable(c)) {
// Nope. Set flag for allowing control codes to insert spaces
ctrlSpace = true;
justChangedSpeaker = false;