X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fgame_sp%2Fvb_lib.c;fp=src%2Fgame_sp%2Fvb_lib.c;h=c2a9fceea2bd0ce0c68f109ec1abc6d18b26e622;hp=5c1dae75010089def694009c81b8c0c7162ed039;hb=29ea60b3d59414875c3bbc59e64f62d2e236ef2a;hpb=2af2c61f4dde2d22c1dc0e8dfad033b40d81dc6c diff --git a/src/game_sp/vb_lib.c b/src/game_sp/vb_lib.c index 5c1dae75..c2a9fcee 100644 --- a/src/game_sp/vb_lib.c +++ b/src/game_sp/vb_lib.c @@ -91,7 +91,8 @@ boolean STRING_IS_LIKE(char *a, char *b) void FILE_GET(FILE *file, int offset, void *buffer, int num_bytes) { - fseek(file, offset - 1, SEEK_SET); + if (offset != -1) + fseek(file, offset - 1, SEEK_SET); while (num_bytes--) *(byte *)buffer++ = fgetc(file);