diff options
author | rubidium <rubidium@openttd.org> | 2008-08-30 12:14:56 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-08-30 12:14:56 +0000 |
commit | 0b88f0cf54d43207e340388fcbc7a368d3ff8f0a (patch) | |
tree | e56a2fed620589b8a0764da677a5a0d22daf2897 | |
parent | d40145008ee728c8c32cc3626809da0af17bafe9 (diff) | |
download | openttd-0b88f0cf54d43207e340388fcbc7a368d3ff8f0a.tar.xz |
(svn r14193) -Fix (r14191): don't put an unsigned 0x80 in a signed int8 as that's not what you want.
-rw-r--r-- | src/spritecache.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/spritecache.cpp b/src/spritecache.cpp index ae331e3ed..d9c2498a8 100644 --- a/src/spritecache.cpp +++ b/src/spritecache.cpp @@ -85,9 +85,9 @@ void SkipSpriteData(byte type, uint16 num) while (num > 0) { int8 i = FioReadByte(); if (i >= 0) { - i = (i == 0) ? 0x80 : i; - num -= i; - FioSkipBytes(i); + int size = (i == 0) ? 0x80 : i; + num -= size; + FioSkipBytes(size); } else { i = -(i >> 3); num -= i; |