mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-28 12:30:46 +00:00
- 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:
parent
778a75c097
commit
f20acca498
1 changed files with 2 additions and 2 deletions
|
@ -76,14 +76,14 @@ struct FileSystem::LumpRecord
|
||||||
shortName.String[8] = 0;
|
shortName.String[8] = 0;
|
||||||
longName = "";
|
longName = "";
|
||||||
Namespace = lump->GetNamespace();
|
Namespace = lump->GetNamespace();
|
||||||
resourceId = 0;
|
resourceId = -1;
|
||||||
}
|
}
|
||||||
else if ((lump->Flags & LUMPF_EMBEDDED) || !lump->getName() || !*lump->getName())
|
else if ((lump->Flags & LUMPF_EMBEDDED) || !lump->getName() || !*lump->getName())
|
||||||
{
|
{
|
||||||
shortName.qword = 0;
|
shortName.qword = 0;
|
||||||
longName = "";
|
longName = "";
|
||||||
Namespace = ns_hidden;
|
Namespace = ns_hidden;
|
||||||
resourceId = 0;
|
resourceId = -1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue