mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-03 17:32:26 +00:00
- fixed crash when loading empty resource directory
https://forum.zdoom.org/viewtopic.php?t=69004
This commit is contained in:
parent
a713a895a7
commit
f2ddbeeb81
1 changed files with 5 additions and 0 deletions
|
@ -920,6 +920,11 @@ static FResourceLump placeholderLump;
|
|||
|
||||
void FileSystem::MoveLumpsInFolder(const char *path)
|
||||
{
|
||||
if (FileInfo.Size() == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
auto len = strlen(path);
|
||||
auto rfnum = FileInfo.Last().rfnum;
|
||||
|
||||
|
|
Loading…
Reference in a new issue