Skip to content

Commit

Permalink
[AI] Fixed bad index when ganging up (#4029)
Browse files Browse the repository at this point in the history
  • Loading branch information
Grummel7 committed Aug 3, 2022
1 parent ab12ec0 commit a8b7cb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion default/python/AI/MilitaryAI.py
Expand Up @@ -811,7 +811,7 @@ def get_military_fleets(mil_fleets_ids=None, try_reset=True, thisround="Main"):
for sid in interior_targets1
if (
allocation_helper.threat_bias + systems_status.get(sid, {}).get("totalThreat", 0)
> 0.8 * allocation_helper.already_assigned_rating[sid]
> 0.8 * allocation_helper.already_assigned_rating.get(sid, 0)
)
]
for sys_id in interior_targets:
Expand Down

0 comments on commit a8b7cb3

Please sign in to comment.