From fe9ba086908537cc6c569914646190b990be1457 Mon Sep 17 00:00:00 2001 From: yairm210 Date: Thu, 25 Jul 2024 00:45:43 +0300 Subject: [PATCH] fixed broken build --- .../unciv/ui/screens/worldscreen/worldmap/WorldMapHolder.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/com/unciv/ui/screens/worldscreen/worldmap/WorldMapHolder.kt b/core/src/com/unciv/ui/screens/worldscreen/worldmap/WorldMapHolder.kt index 26ba2c2c60..773fdb7fff 100644 --- a/core/src/com/unciv/ui/screens/worldscreen/worldmap/WorldMapHolder.kt +++ b/core/src/com/unciv/ui/screens/worldscreen/worldmap/WorldMapHolder.kt @@ -320,7 +320,7 @@ class WorldMapHolder( moveUnitToTargetTile(selectedUnits.subList(1, selectedUnits.size), targetTile) } else removeUnitActionOverlay() //we're done here - if (UncivGame.Current.settings.autoUnitCycle && selected!unit.hasMovement()) + if (UncivGame.Current.settings.autoUnitCycle && selectedUnit.hasMovement()) worldScreen.switchToNextUnit() } catch (ex: Exception) { @@ -378,7 +378,7 @@ class WorldMapHolder( // Play something like a swish-swoosh SoundPlayer.play(UncivSound.Swap) - if (selectedunit.hasMovement()) worldScreen.bottomUnitTable.selectUnit(selectedUnit) + if (selectedUnit.hasMovement()) worldScreen.bottomUnitTable.selectUnit(selectedUnit) worldScreen.shouldUpdate = true removeUnitActionOverlay()