mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 07:12:02 +00:00
Merge branch 'master' of https://github.com/coelckers/gzdoom
This commit is contained in:
commit
3cf1959070
2 changed files with 5 additions and 2 deletions
|
@ -99,7 +99,7 @@ script:
|
|||
- mkdir build
|
||||
- cd build
|
||||
- cmake ${CMAKE_OPTIONS} -DPK3_QUIET_ZIPDIR=YES ..
|
||||
- make -j2
|
||||
- make -j2 -k
|
||||
|
||||
notifications:
|
||||
email: false
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
|
Loading…
Reference in a new issue