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

Conversation

frigoref
Copy link
Member

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

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
LanchesterDebugAction.java
- fix use of randomness now based on common ThreadLocalRandom variable for each loop run (also passed to method getRandomUnitType)
@frigoref frigoref merged commit 870de56 into triplea-game:master Aug 11, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant