Another bug.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1463 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
meep-eep
2005-01-18 14:32:33 +00:00
parent be79b5f76a
commit c5d3165d0b
+4
View File
@@ -168,7 +168,11 @@ BuildGroups (void)
|| (HIWORD (rand_val) % (i + BestPercent)) < i)) || (HIWORD (rand_val) % (i + BestPercent)) < i))
{ {
if (TemplatePtr->ShipInfo.actual_strength == (COUNT)~0) if (TemplatePtr->ShipInfo.actual_strength == (COUNT)~0)
{
// XXX: BUG: This code is never reached.
// When actual_strength == ~0, i is always 0.
i = 4; i = 4;
}
BestPercent = i; BestPercent = i;
BestIndex = Index; BestIndex = Index;