Skip to content

Commit

Permalink
Semi-reverted change that caused CTD; the change wasn't bugged, it on…
Browse files Browse the repository at this point in the history
…ly revealed a bigger bug.
  • Loading branch information
Toffer90 committed Jun 13, 2021
1 parent d4f376f commit 0f3913a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Sources/CvPlayerAI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30839,9 +30839,10 @@ int CvPlayerAI::AI_promotionValue(PromotionTypes ePromotion, UnitTypes eUnit, co
//end mod

//@MOD Commanders: control points promotion AI value
if (pUnit != NULL)
iTemp = kPromotion.getControlPoints();
if (iTemp != 0 && pUnit != NULL)
{
iValue += kPromotion.getControlPoints() * (100 + 25 * pUnit->plot()->getNumUnits());
iValue += iTemp * (100 + 25 * pUnit->plot()->getNumUnits());
}
//end mod

Expand Down

0 comments on commit 0f3913a

Please sign in to comment.