load returns 0 rather than erroring if not a skip file

This commit is contained in:
DaniTheSkunk 2023-03-22 04:21:33 +00:00
parent efe2991517
commit 7b35a3475c
1 changed files with 2 additions and 1 deletions

View File

@ -35,7 +35,8 @@ struct sw_skip *sw_skip_load(char *filename) {
fread(magic, 1, 4, fil);
if(strcmp("SWZP", magic) != 0) {
sw_error("not a .skip file");
sw_log("not a .skip file");
return 0;
}
fread(&version, 1, 1, fil);