mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 22:11:43 +00:00
Fixed crash on loading directories
This commit is contained in:
parent
1f6e201bf1
commit
e0f7c99496
1 changed files with 4 additions and 1 deletions
|
@ -1363,7 +1363,10 @@ FileReader *FWadCollection::GetFileReader(int wadnum)
|
||||||
{
|
{
|
||||||
return NULL;
|
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