- Blood: fixed issue with INI detection when having content added by RFS files.

This commit is contained in:
Christoph Oelckers 2021-04-12 00:01:29 +02:00
parent 135dd1f081
commit d25838fe15

View file

@ -121,7 +121,8 @@ static const char* DefFile(void)
int numlumps = fileSystem.GetNumEntries(); int numlumps = fileSystem.GetNumEntries();
for (int i = numlumps - 1; i >= 0; i--) for (int i = numlumps - 1; i >= 0; i--)
{ {
if (fileSystem.GetFileContainer(i) <= fileSystem.GetMaxIwadNum()) break; int fileno = fileSystem.GetFileContainer(i);
if (fileno != -1 && fileno <= fileSystem.GetMaxIwadNum()) break;
FString fn = fileSystem.GetFileFullName(i, false); FString fn = fileSystem.GetFileFullName(i, false);
FString ext = fn.Right(4); FString ext = fn.Right(4);
if (ext.CompareNoCase(".ini") == 0) if (ext.CompareNoCase(".ini") == 0)