- Fixed handling of embedded WADs.
SVN r1559 (trunk)
This commit is contained in:
parent
2e90519c13
commit
511ddb028c
3 changed files with 7 additions and 4 deletions
|
|
@ -78,7 +78,7 @@ FResourceLump::~FResourceLump()
|
|||
delete [] FullName;
|
||||
FullName = NULL;
|
||||
}
|
||||
if (Cache != NULL)
|
||||
if (Cache != NULL && RefCount >= 0)
|
||||
{
|
||||
delete [] Cache;
|
||||
Cache = NULL;
|
||||
|
|
@ -150,7 +150,7 @@ void FResourceLump::LumpNameSetup(char *iname)
|
|||
void FResourceLump::CheckEmbedded()
|
||||
{
|
||||
// Checks for embedded archives
|
||||
const char *c = strstr(Name, ".wad");
|
||||
const char *c = strstr(FullName, ".wad");
|
||||
if (c && strlen(c) == 4 && !strchr(Name, '/'))
|
||||
{
|
||||
// Mark all embedded WADs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue