From c4b41f5d7cfd6506c9d541868af71c5288b36c09 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Sun, 20 Mar 2016 16:50:12 +0100 Subject: SCI32: Fix drawText on consecutive control codes --- engines/sci/graphics/text32.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engines/sci/graphics/text32.cpp b/engines/sci/graphics/text32.cpp index 62664c1aa2..425c7fb6d6 100644 --- a/engines/sci/graphics/text32.cpp +++ b/engines/sci/graphics/text32.cpp @@ -311,6 +311,10 @@ void GfxText32::drawText(const uint index, uint length) { ++text; --length; } + if (length > 0) { + ++text; + --length; + } } else { drawChar(currentChar); } -- cgit v1.2.3