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
This commit is contained in:
Torbjörn Andersson 2006-04-29 17:50:15 +00:00
parent aeef84c961
commit ac0ae13bee

View File

@ -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;