diff --git a/src/w_wad.cpp b/src/w_wad.cpp index 412450d0a..ae52725d2 100644 --- a/src/w_wad.cpp +++ b/src/w_wad.cpp @@ -1554,7 +1554,7 @@ FWadLump::FWadLump(int lumpnum, FResourceLump *lump) // Uncompressed lump in a file. For this we will have to open a new FILE, since we need it for streaming int fileno = Wads.GetLumpFile(lumpnum); const char *filename = Wads.GetWadFullName(fileno); - File = fopen(filename, "rb"); + File = openfd(filename); if (File != NULL) { Length = lump->LumpSize;