mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
fix debug crc generation
This commit is contained in:
parent
3eedd3d8fc
commit
5c31fbf366
1 changed files with 3 additions and 2 deletions
|
@ -359,13 +359,14 @@ WriteData (int crc)
|
|||
|
||||
fseek (h, 0, SEEK_SET);
|
||||
SafeWrite (h, &progs, sizeof (progs));
|
||||
fclose (h);
|
||||
|
||||
fseek (h, 0, SEEK_SET);
|
||||
if (!options.debug) {
|
||||
fclose (h);
|
||||
return;
|
||||
}
|
||||
|
||||
h = SafeOpenRead (destfile);
|
||||
|
||||
debug.version = LittleLong (PROG_DEBUG_VERSION);
|
||||
CRC_Init (&debug.crc);
|
||||
while ((i = fgetc (h)) != EOF)
|
||||
|
|
Loading…
Reference in a new issue