mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-23 18:24:59 +00:00
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:
parent
aeef84c961
commit
ac0ae13bee
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user