From a69eebe53b2add4e98e3c875180e13c194b9d73b Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 3 Sep 2016 15:44:58 -0400 Subject: SHERLOCK: SS: Fix German journal crash moving tobacco box --- engines/sherlock/journal.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'engines') 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; -- cgit v1.2.3