Skip to content

Commit

Permalink
- fixed crash when loading empty resource directory
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-lysiuk committed Jun 18, 2020
1 parent a713a89 commit f2ddbee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/common/filesystem/filesystem.cpp
Expand Up @@ -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;

Expand Down

0 comments on commit f2ddbee

Please sign in to comment.