diff --git a/source/common/filesystem/filesystem.cpp b/source/common/filesystem/filesystem.cpp index 83de9bbe9..c57b06113 100644 --- a/source/common/filesystem/filesystem.cpp +++ b/source/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; diff --git a/source/common/filesystem/resourcefile.h b/source/common/filesystem/resourcefile.h index 8e1ff92a6..bfd20e816 100644 --- a/source/common/filesystem/resourcefile.h +++ b/source/common/filesystem/resourcefile.h @@ -164,7 +164,6 @@ public: const FString &GetHash() const { return Hash; } - //virtual bool Open(bool quiet, LumpFilterInfo* filter) = 0; virtual FResourceLump *GetLump(int no) = 0; FResourceLump *FindLump(const char *name); };