- added missing NULL pointer check for directory loading.

SVN r1625 (trunk)
This commit is contained in:
Christoph Oelckers 2009-05-31 18:14:40 +00:00
parent 627838f379
commit 4be0324dbd

View file

@ -183,7 +183,7 @@ void FWadCollection::InitMultipleFiles (wadlist_t **filenames, const char *loadd
M_Free (*filenames);
*filenames = next;
}
AddFile(loaddir, NULL, true);
if (loaddir != NULL) AddFile(loaddir, NULL, true);
NumLumps = LumpInfo.Size();
if (NumLumps == 0)