triplea-game / triplea

TripleA is a turn based strategy game and board game engine, similar to Axis & Allies or Risk.
https://triplea-game.org/
GNU General Public License v3.0
1.29k stars 381 forks source link

Fix purchase persisting on max built error. #12670

Closed asvitkine closed 1 week ago

asvitkine commented 1 week ago

The fix in https://github.com/triplea-game/triplea/pull/11818 regressed with the changes for saving purchases in saved games. This restores it.

Also fixes the error message to not display a negative max limit.

Fixes: https://github.com/triplea-game/triplea/issues/12664

Notes to Reviewer