From 287f829e328daebc48571f2f58a4a0b6e2c0f228 Mon Sep 17 00:00:00 2001 From: terminx Date: Wed, 1 May 2013 18:49:03 +0000 Subject: [PATCH] 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 --- polymer/eduke32/source/grpscan.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/polymer/eduke32/source/grpscan.c b/polymer/eduke32/source/grpscan.c index f9ee192ae..119c9626c 100644 --- a/polymer/eduke32/source/grpscan.c +++ b/polymer/eduke32/source/grpscan.c @@ -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);