X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ffiles.c;h=863ac2036459f5a820f3205435c8a45a5253a234;hb=026c569fc47fbe95d8cb131442a4e04610f27f05;hp=239b85ec89a51863584162e5c2a7a9f840016854;hpb=91c0172a97f1323e573684a456de436332c8ea34;p=rocksndiamonds.git diff --git a/src/files.c b/src/files.c index 239b85ec..863ac203 100644 --- a/src/files.c +++ b/src/files.c @@ -4013,7 +4013,8 @@ static void LoadLevelFromFileInfo_SP(struct LevelInfo *level, } /* position file stream to the requested level inside the level package */ - if (fseek(file, nr * SP_LEVEL_SIZE, SEEK_SET) != 0) + if (level_file_info->packed && + fseek(file, nr * SP_LEVEL_SIZE, SEEK_SET) != 0) { level->no_valid_file = TRUE;