Actions
Bug #1673
openOverflow in culture victory calculation
Start date:
09/05/2025
Due date:
% Done:
0%
Estimated time:
Description
if (best != NULL && best_value >= game.info.culture_vic_points
&& best_value > second_value * (100 + game.info.culture_vic_lead) / 100) {
If second_value > 7158277, the first multiplication exceeds 2**31 and overflows.
The back story - I made the history_interest_pml value too big in my custom ruleset, forgetting about what happens with compound interest. Culture values this big would never happen with supplied rulesets, but this should still get fixed.
Files
Actions