aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/sherlock/tattoo/widget_talk.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sherlock/tattoo/widget_talk.cpp b/engines/sherlock/tattoo/widget_talk.cpp
index 5c2d5a3360..cc6c49e551 100644
--- a/engines/sherlock/tattoo/widget_talk.cpp
+++ b/engines/sherlock/tattoo/widget_talk.cpp
@@ -541,7 +541,7 @@ void WidgetTalk::setStatementLines() {
// Find out how much of the statement will fit on the line
int width = 0;
- const char *ch = line.c_str();
+ const char *ch = str.c_str();
const char *space = nullptr;
while (width < xSize && *ch) {