From 199e60b9a0e2b355c96cada2b9bf0c0c26c2db04 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 7 Oct 2007 11:05:09 +0000 Subject: Finally tracked down a bug that sometimes caused word wrapping to fail svn-id: r29164 --- engines/lure/surface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') 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; -- cgit v1.2.3