Skip to content

Commit

Permalink
- fixed: When reopening a lump, the full file name must be used.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Jun 8, 2020
1 parent 666b6b7 commit 58bc12e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/filesystem/filesystem.cpp
Expand Up @@ -1386,7 +1386,7 @@ FileReader FileSystem::ReopenFileReader(int lump, bool alwayscache)
if (rl->RefCount == 0 && rd != nullptr && !rd->GetBuffer() && !alwayscache && !(rl->Flags & LUMPF_COMPRESSED))
{
int fileno = fileSystem.GetFileContainer(lump);
const char *filename = fileSystem.GetResourceFileName(fileno);
const char *filename = fileSystem.GetResourceFileFullName(fileno);
FileReader fr;
if (fr.OpenFile(filename, rl->GetFileOffset(), rl->LumpSize))
{
Expand Down

0 comments on commit 58bc12e

Please sign in to comment.