- fixed crash when loading empty resource directory

https://forum.zdoom.org/viewtopic.php?t=69004
This commit is contained in:
alexey.lysiuk 2020-06-18 11:32:16 +03:00
parent a713a895a7
commit f2ddbeeb81

View file

@ -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;