Closed asvitkine closed 2 weeks ago
The check was intended to verify whether https://github.com/triplea-game/triplea/issues/12693 was caused by non-finite values. However, tests caught that this could actually trigger due to a division by zero. I suspect this should therefore fix https://github.com/triplea-game/triplea/issues/12693
Aha, looks like this precondition actually failed in testAiGameMovingConsumedUnitsToFactories! So that does show it's probably this that is responsible. Will need to debug.
The check was intended to verify whether https://github.com/triplea-game/triplea/issues/12693 was caused by non-finite values. However, tests caught that this could actually trigger due to a division by zero. I suspect this should therefore fix https://github.com/triplea-game/triplea/issues/12693
Notes to Reviewer