mirror of
https://git.code.sf.net/p/quake/quake2forge
synced 2025-03-04 16:00:51 +00:00
pass the correct file name to FS_OpenRead
This commit is contained in:
parent
f2cbe232de
commit
44cb036bf1
1 changed files with 1 additions and 1 deletions
|
@ -311,7 +311,7 @@ int _FS_FOpenFile (char *filename, QFile **file, char *foundname, int zip)
|
||||||
Com_DPrintf ("PackFile: %s : %s\n",pak->filename, filename);
|
Com_DPrintf ("PackFile: %s : %s\n",pak->filename, filename);
|
||||||
// open a new file on the pakfile
|
// open a new file on the pakfile
|
||||||
strncpy (foundname, pak->files[i].name, MAX_OSPATH);
|
strncpy (foundname, pak->files[i].name, MAX_OSPATH);
|
||||||
*file = FS_OpenRead (pak->files[i].name,
|
*file = FS_OpenRead (pak->filename,
|
||||||
pak->files[i].filepos,
|
pak->files[i].filepos,
|
||||||
pak->files[i].filelen, zip, &size);
|
pak->files[i].filelen, zip, &size);
|
||||||
if (!*file)
|
if (!*file)
|
||||||
|
|
Loading…
Reference in a new issue