- always default the resource ID to -1, even for dummy entries.

Better be safe than sorry, this should never happen in Blood but we never know what people may load...
This commit is contained in:
Christoph Oelckers 2021-04-08 22:03:25 +02:00
parent 778a75c097
commit f20acca498

View file

@ -76,14 +76,14 @@ struct FileSystem::LumpRecord
shortName.String[8] = 0;
longName = "";
Namespace = lump->GetNamespace();
resourceId = 0;
resourceId = -1;
}
else if ((lump->Flags & LUMPF_EMBEDDED) || !lump->getName() || !*lump->getName())
{
shortName.qword = 0;
longName = "";
Namespace = ns_hidden;
resourceId = 0;
resourceId = -1;
}
else
{