Skip to content

Commit e524434

Browse files
author
JasonNumberThirteen
committed
Fix updating of the map tile weight counter text UI after deselecting a map tile
1 parent 1d26172 commit e524434

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Assets/Project/Scripts/UI/MapTileWeightCounterTextUI.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ private void OnSelectedMapTileWasChanged(MapTile mapTile)
139139
selectedMapTile = mapTile;
140140
currentMapTile = selectedMapTile == null ? hoveredMapTile : null;
141141

142+
SetMapTileWeightText(currentMapTile != null ? currentMapTile.GetWeight() : 0);
142143
UpdateActiveState();
143144
}
144145

0 commit comments

Comments
 (0)