- sanity check added for MoveLumpsInFolder

This commit is contained in:
Christoph Oelckers 2020-09-27 10:53:37 +02:00
parent ba5da8ebc2
commit 4ca5bfdd46
2 changed files with 5 additions and 1 deletions

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;

View File

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