Fix tests

This commit is contained in:
yairm210 2024-06-21 19:02:01 +03:00
parent 1bf494a6f7
commit d12c6c10e7
2 changed files with 2 additions and 2 deletions

View File

@ -152,7 +152,7 @@ object MovementCost {
// function is surprisingly less efficient than the current neighbor-intersection approach.
// See #4085 for more details.
val tilesExertingZoneOfControl = getTilesExertingZoneOfControl(unit, from)
if (tilesExertingZoneOfControl.none { it.aerialDistanceTo(it) == 1 })
if (tilesExertingZoneOfControl.none { to.aerialDistanceTo(it) == 1 })
return false
// Even though this is a very fast check, we perform it last. This is because very few units

View File

@ -67,7 +67,7 @@ class GameSerializationTests {
UncivGame.Current.settings = GameSettings()
game = GameStarter.startNewGame(setup)
UncivGame.Current.startSimulation(game)
UncivGame.Current.gameInfo = game
// Found a city otherwise too many classes have no instance and are not tested
val civ = game.getCurrentPlayerCivilization()