This commit is contained in:
Christoph Oelckers 2018-03-12 10:19:23 +01:00
commit 3cf1959070
2 changed files with 5 additions and 2 deletions

View File

@ -99,7 +99,7 @@ script:
- mkdir build
- cd build
- cmake ${CMAKE_OPTIONS} -DPK3_QUIET_ZIPDIR=YES ..
- make -j2
- make -j2 -k
notifications:
email: false

View File

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