mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-29 23:42:08 +00:00
account for resorted directories when accessing the local file path array in file_directory.cpp
This commit is contained in:
parent
6432eba066
commit
998d68541d
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