diff options
author | Torbjörn Andersson | 2006-04-29 17:50:15 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2006-04-29 17:50:15 +0000 |
commit | ac0ae13bee890b78442788abe6b87e514c9928a0 (patch) | |
tree | a8d56f7cf1cb7bf7e38a61158f5bffa978811bfa | |
parent | aeef84c96198df9aedbd9bbc51db5868b6f9bc33 (diff) | |
download | scummvm-rg350-ac0ae13bee890b78442788abe6b87e514c9928a0.tar.gz scummvm-rg350-ac0ae13bee890b78442788abe6b87e514c9928a0.tar.bz2 scummvm-rg350-ac0ae13bee890b78442788abe6b87e514c9928a0.zip |
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
-rw-r--r-- | engines/sky/text.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |