Fixed bug: didn't take the real end of unit-types.

This commit is contained in:
johns 2001-03-19 02:00:57 +00:00
parent ff6bddec32
commit 34113a8770

View file

@ -1587,7 +1587,7 @@ global void AiInit(Player * player)
//
// Adjust costs for AI Player
//
for (i = 0; i < UnitTypeInternalMax; ++i) {
for (i = 0; UnitTypes[i].OType; ++i) {
for (j = 0; j < MaxCosts; ++j) {
UnitTypes[i].Stats[player->Player].Costs[j] *=
j == TimeCost ? AiTimeFactor : AiCostFactor;