From 17998f7f98209ec0c641a87a7ab4ae5925a75936 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 30 Aug 2008 12:14:56 +0000 Subject: (svn r14193) -Fix (r14191): don't put an unsigned 0x80 in a signed int8 as that's not what you want. --- src/spritecache.cpp | 6 +++--- 1 file 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; -- cgit v1.2.3-70-g09d2