mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 00:42:08 +00:00
fixed crash on trying to read from a mounted directory's content.
This commit is contained in:
parent
3b44c50dfd
commit
27da9b6b79
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