From c5d3165d0b5056c1718168e6db981e2a095dbeb8 Mon Sep 17 00:00:00 2001 From: meep-eep Date: Tue, 18 Jan 2005 14:32:33 +0000 Subject: [PATCH] Another bug. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1463 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/grpinfo.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sc2/src/sc2code/grpinfo.c b/sc2/src/sc2code/grpinfo.c index 513637a46..f38ccdb0c 100644 --- a/sc2/src/sc2code/grpinfo.c +++ b/sc2/src/sc2code/grpinfo.c @@ -168,7 +168,11 @@ BuildGroups (void) || (HIWORD (rand_val) % (i + BestPercent)) < i)) { if (TemplatePtr->ShipInfo.actual_strength == (COUNT)~0) + { + // XXX: BUG: This code is never reached. + // When actual_strength == ~0, i is always 0. i = 4; + } BestPercent = i; BestIndex = Index;