mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-16 09:11:21 +00:00
fixed crash with files from directories.
This commit is contained in:
parent
273f7c55bc
commit
d11bf52831
1 changed files with 1 additions and 1 deletions
|
@ -711,7 +711,7 @@ FileReader FResourceFile::GetEntryReader(uint32_t entry, int readertype, int rea
|
|||
|
||||
FileData FResourceFile::Read(int entry)
|
||||
{
|
||||
if (!(Entries[entry].Flags & RESFF_COMPRESSED))
|
||||
if (!(Entries[entry].Flags & RESFF_COMPRESSED) && Reader.isOpen())
|
||||
{
|
||||
auto buf = Reader.GetBuffer();
|
||||
// if this is backed by a memory buffer, we can just return a reference to the backing store.
|
||||
|
|
Loading…
Reference in a new issue