- - let FWadLump use the newly added fdopen function.

This commit is contained in:
Christoph Oelckers 2017-12-02 11:56:26 +01:00
parent 9cc8bab102
commit e1edb46bbb

View file

@ -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;