- 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) void FileSystem::MoveLumpsInFolder(const char *path)
{ {
if (FileInfo.Size() == 0)
{
return;
}
auto len = strlen(path); auto len = strlen(path);
auto rfnum = FileInfo.Last().rfnum; auto rfnum = FileInfo.Last().rfnum;

View file

@ -164,7 +164,6 @@ public:
const FString &GetHash() const { return Hash; } const FString &GetHash() const { return Hash; }
//virtual bool Open(bool quiet, LumpFilterInfo* filter) = 0;
virtual FResourceLump *GetLump(int no) = 0; virtual FResourceLump *GetLump(int no) = 0;
FResourceLump *FindLump(const char *name); FResourceLump *FindLump(const char *name);
}; };