aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/sherlock/tattoo/widget_talk.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/sherlock/tattoo/widget_talk.cpp b/engines/sherlock/tattoo/widget_talk.cpp
index 2b79aa1eec..55f7df3eee 100644
--- a/engines/sherlock/tattoo/widget_talk.cpp
+++ b/engines/sherlock/tattoo/widget_talk.cpp
@@ -64,9 +64,13 @@ void WidgetTalk::getTalkWindowSize() {
// Now that we have a width, split up the text into individual lines
int numLines = 0;
for (uint idx = 0; idx < talk._statements.size(); ++idx) {
+ Common::StringArray statementLines;
if (talk._statements[idx]._talkMap != -1) {
- splitLines(talk._statements[idx]._statement, lines, width, 999);
- numLines += lines.size();
+ splitLines(talk._statements[idx]._statement, statementLines, width, 999);
+ numLines += statementLines.size();
+
+ for (uint sIdx = 0; sIdx < statementLines.size(); ++sIdx)
+ lines.push_back(statementLines[sIdx]);
}
}