diff --git a/saveload.c b/saveload.c index 318519d86e..f5efb28c40 100644 --- a/saveload.c +++ b/saveload.c @@ -60,12 +60,17 @@ static void NORETURN SlError(const char *msg) longjmp(_sl.excpt, 0); } -inline int SlReadByte(void) +static inline int SlReadByteInternal(void) { if (_sl.bufp == _sl.bufe) SlReadFill(); return *_sl.bufp++; } +int SlReadByte(void) +{ + return SlReadByteInternal(); +} + void SlWriteByte(byte v) { if (_sl.bufp == _sl.bufe) SlWriteFill(); @@ -230,7 +235,7 @@ static void SlCopyBytes(void *ptr, size_t length) } } else { while(length) { - *p++ = SlReadByte(); + *p++ = SlReadByteInternal(); length--; } }