aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/lure/surface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/lure/surface.cpp b/engines/lure/surface.cpp
index 4407828165..1c69662b69 100644
--- a/engines/lure/surface.cpp
+++ b/engines/lure/surface.cpp
@@ -337,7 +337,7 @@ void Surface::wordWrap(char *text, uint16 width, char **&lines, uint8 &numLines)
*(wordStart - 1) = '\0';
++numLines;
lineWidth = 0;
- wordEnd = wordStart;
+ wordEnd = wordStart - 1;
} else if (newLine) {
// Break on newline
++numLines;