diff --git a/src/common/filesystem/filesystem.cpp b/src/common/filesystem/filesystem.cpp index d411ab32f..941418fcb 100644 --- a/src/common/filesystem/filesystem.cpp +++ b/src/common/filesystem/filesystem.cpp @@ -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;