Fixed bug: didn't take the real end of unit-types.
This commit is contained in:
parent
ff6bddec32
commit
34113a8770
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue