- fixed compile error in d_iwad.cpp

SVN r1622 (trunk)
This commit is contained in:
Christoph Oelckers 2009-05-30 17:14:17 +00:00
parent 2effc9b803
commit c0e398e7ac

View file

@ -189,15 +189,16 @@ static EIWADType ScanIWAD (const char *iwad)
Check_e2m1
};
int lumpsfound[NUM_CHECKLUMPS];
int i;
memset (lumpsfound, 0, sizeof(lumpsfound));
FResourceFile *iwadfile = FResourceFile::OpenResourceFile(iwad, NULL, true);
if (iwadfile != NULL)
{
for(DWORD i = 0; i < iwadfile->LumpCount(); i++)
for(DWORD ii = 0; ii < iwadfile->LumpCount(); ii++)
{
FResourceLump *lump = iwadfile->GetLump(i);
FResourceLump *lump = iwadfile->GetLump(ii);
for (DWORD j = 0; j < NUM_CHECKLUMPS; j++)
if (strnicmp (lump->Name, checklumps[j], 8) == 0)