Skip to content

2024-August-11 - 2.7.14856

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 11 Aug 14:41
870de56
Fix issue 12822 GameMap#getNeighbors IllegalArgumentException (#12831)

* 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

* 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)