From ac0ae13bee890b78442788abe6b87e514c9928a0 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sat, 29 Apr 2006 17:50:15 +0000 Subject: Fixed bug #1478911 ("BASS regression: garbled text") by making skipBytes uint16 instead of uint8. (It used to be uint32, but anything that can hold 0x03F8 should be large enough.) svn-id: r22230 --- engines/sky/text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/sky/text.cpp b/engines/sky/text.cpp index d15bc554d1..64f6f00c9e 100644 --- a/engines/sky/text.cpp +++ b/engines/sky/text.cpp @@ -343,7 +343,7 @@ void Text::getText(uint32 textNr) { //load text #"textNr" into textBuffer if (textNr) { uint8 *blockPtr = textDataPtr + blockNr + READ_LE_UINT16(textDataPtr); do { - uint8 skipBytes = *blockPtr++; + uint16 skipBytes = *blockPtr++; if (skipBytes & 0x80) { skipBytes &= 0x7F; skipBytes <<= 3; -- cgit v1.2.3