Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue 12822 GameMap#getNeighbors IllegalArgumentException #12831

Merged
merged 2 commits into from
Aug 11, 2024

Commits on Aug 11, 2024

  1. Fix issue 12822 GameMap#getNeighbors IllegalArgumentException

    Root cause: myCapitol was null when calling method getNeighboringLandTerritories
    
    ProTechAi.java
    - new method getMyStrength making sure method getNeighboringLandTerritories is not called with myCapitol == null
    - fix use of randomness now based on common ThreadLocalRandom
    frigoref committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    f9fef12 View commit details
    Browse the repository at this point in the history
  2. Fix randomness in LanchesterDebugAction

    LanchesterDebugAction.java
    - fix use of randomness now based on common ThreadLocalRandom variable for each loop run (also passed to method getRandomUnitType)
    frigoref committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    3dae8d0 View commit details
    Browse the repository at this point in the history