diff options
Diffstat (limited to 'engines/titanic/support/credit_text.cpp')
-rw-r--r-- | engines/titanic/support/credit_text.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/engines/titanic/support/credit_text.cpp b/engines/titanic/support/credit_text.cpp index 1f12341e71..0e9715aaa6 100644 --- a/engines/titanic/support/credit_text.cpp +++ b/engines/titanic/support/credit_text.cpp @@ -78,7 +78,7 @@ void CCreditText::setup() { if (srcLine.empty()) break; - CCreditLine *line = new CCreditLine(srcLine, + line = new CCreditLine(srcLine, _screenManagerP->stringWidth(srcLine)); group->_lines.push_back(line); @@ -107,9 +107,8 @@ CString CCreditText::readLine(Common::SeekableReadStream *stream) { } if (c == '\r') { - c = stream->readByte(); - if (c != '\n') - stream->skip(-1); + // Read following '\n' + stream->readByte(); } return line; |