mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-28 06:53:29 +00:00
account for resorted directories when accessing the local file path array in file_directory.cpp
This commit is contained in:
parent
f9b2532c24
commit
ac8e80e52f
1 changed files with 2 additions and 1 deletions
|
@ -136,6 +136,7 @@ int FDirectory::AddDirectory(const char *dirpath, LumpFilterInfo* filter, FileSy
|
|||
Entries[count].ResourceID = -1;
|
||||
Entries[count].Method = METHOD_STORED;
|
||||
Entries[count].Namespace = ns_global;
|
||||
Entries[count].Position = count;
|
||||
count++;
|
||||
}
|
||||
}
|
||||
|
@ -169,7 +170,7 @@ FileReader FDirectory::GetEntryReader(uint32_t entry, int readertype, int)
|
|||
if (entry < NumLumps)
|
||||
{
|
||||
std::string fn = mBasePath;
|
||||
fn += SystemFilePath[entry];
|
||||
fn += SystemFilePath[Entries[entry].Position];
|
||||
fr.OpenFile(fn.c_str());
|
||||
if (readertype == READER_CACHED)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue