Handle things in a more sensible way

This commit is contained in:
wolfy852 2019-02-20 19:04:18 -06:00
parent f34ed24132
commit 84755ec171
1 changed files with 1 additions and 5 deletions

View File

@ -106,7 +106,7 @@ static UINT16 lumpnumcacheindex = 0;
//===========================================================================
// GLOBALS
//===========================================================================
UINT16 numwadfiles; // number of active wadfiles
UINT16 numwadfiles = 0; // number of active wadfiles
wadfile_t *wadfiles[MAX_WADFILES]; // 0 to numwadfiles-1 are valid
// W_Shutdown
@ -859,10 +859,6 @@ INT32 W_InitMultipleFiles(char **filenames)
{
INT32 rc = 1;
// open all the files, load headers, and count lumps
if (!numwadfiles)
numwadfiles = 0;
// will be realloced as lumps are added
for (; *filenames; filenames++)
{