I am not a smart man. Fix startup window hangs with grpinfo files.

git-svn-id: https://svn.eduke32.com/eduke32@3723 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2013-05-01 18:49:03 +00:00
parent 9f313043bf
commit 287f829e32

View file

@ -439,11 +439,13 @@ int32_t ScanGroups(void)
if (igrp->dependency)
{
//initprintf("found grp with dep\n");
for (grp = foundgrps; grp; grp=grp->next)
if (grp->crcval == igrp->dependency) break;
struct grpfile *depgrp;
if (grp == NULL || grp->crcval != igrp->dependency) // couldn't find dependency
//initprintf("found grp with dep\n");
for (depgrp = foundgrps; depgrp; depgrp=depgrp->next)
if (depgrp->crcval == igrp->dependency) break;
if (depgrp == NULL || depgrp->crcval != igrp->dependency) // couldn't find dependency
{
//initprintf("removing %s\n", grp->name);
RemoveGroup(igrp->crcval);