Rewind W_VerifyNMUSlumps file handle for PK3, too (resolves kart-krew-dev/ring-racers#177)

This commit is contained in:
toaster 2025-10-21 20:46:00 +01:00
parent 5a622e6ce0
commit 2f189ca6f0

View file

@ -2535,12 +2535,12 @@ int W_VerifyNMUSlumps(const char *filename, FILE *handle, boolean exit_on_error)
&& stricmp(&filename[strlen(filename) - 4], ".lua"))
{
status = W_VerifyWAD(handle, NMUSlist, false);
// repair file handle in this specific case
fseek(handle, 0, SEEK_SET);
}
}
// repair file handle so we don't have to open a new one
fseek(handle, 0, SEEK_SET);
if (status == -1)
W_InitFileError(filename, exit_on_error);