"runLength-- > 0" made runLength negative, even though the test failed.

Skins should work again.
This commit is contained in:
Brian Koropoff 2002-05-28 23:34:02 +00:00
parent 9b7b059d5c
commit 8025dfd2ce
1 changed files with 2 additions and 2 deletions

View File

@ -115,14 +115,14 @@ LoadPCX (VFile *f, int convert, byte *pal)
count -= runLength;
if (convert) {
while (runLength-- > 0) {
for (; runLength > 0; runLength--) {
*pix++ = palette[*dataByte * 3];
*pix++ = palette[*dataByte * 3 + 1];
*pix++ = palette[*dataByte * 3 + 2];
*pix++ = 255;
}
} else {
while (runLength-- > 0) {
for (; runLength > 0; runLength--) {
*pix++ = *dataByte;
}
}