mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 07:11:41 +00:00
remove the file count restriction
This commit is contained in:
parent
e6ea44a9ad
commit
3a14891266
1 changed files with 1 additions and 4 deletions
|
@ -84,10 +84,7 @@ pack_open (const char *name)
|
|||
|
||||
pack->numfiles = pack->header.dirlen / sizeof (dpackfile_t);
|
||||
pack->old_numfiles = pack->files_size = pack->numfiles;
|
||||
if (pack->numfiles > MAX_FILES_IN_PACK) {
|
||||
fprintf (stderr, "%s: too many files in pack: %d", name, pack->numfiles);
|
||||
goto error;
|
||||
}
|
||||
|
||||
pack->files = malloc (pack->files_size * sizeof (dpackfile_t));
|
||||
if (!pack->files) {
|
||||
fprintf (stderr, "out of memory\n");
|
||||
|
|
Loading…
Reference in a new issue