summaryrefslogtreecommitdiff
path: root/src/spritecache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/spritecache.cpp')
-rw-r--r--src/spritecache.cpp6
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;