This should be dealt with at the source, not one level up, so that it also works properly if the GetReader function of the ResourceFile object is called directly and not through the resource manager.
This commit is contained in:
Christoph Oelckers 2018-03-12 10:26:36 +01:00
commit c85389c976
2 changed files with 3 additions and 4 deletions

View file

@ -1364,9 +1364,7 @@ FileReader *FWadCollection::GetFileReader(int wadnum)
return NULL;
}
// Return reader for real files only and nullptr otherwise
FileReader* const reader = Files[wadnum]->GetReader();
return reader->isOpen() ? reader : nullptr;
return Files[wadnum]->GetReader();
}
//==========================================================================