Skip to content

Commit

Permalink
Fix time of day option
Browse files Browse the repository at this point in the history
  • Loading branch information
LiZhenhuan1019 committed Mar 14, 2021
1 parent f22daba commit 8347d0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/EnhancedBattleTest/src/UI/EnhancedBattleTestVM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,10 @@ private void RecoverConfig()
break;
}

MapSelectionGroup.TimeOfDaySelection.SelectedItem =
MapSelectionGroup.TimeOfDaySelection.SelectedIndex = MapSelectionGroup.TimeOfDaySelection.ItemList.IndexOf(
MapSelectionGroup.TimeOfDaySelection.ItemList.FirstOrDefault(vm =>
vm.TimeOfDay == _config.MapConfig.TimeOfDay) ??
MapSelectionGroup.TimeOfDaySelection.ItemList.FirstOrDefault();
MapSelectionGroup.TimeOfDaySelection.ItemList.FirstOrDefault());
}

public void ExecuteSwapTeam()
Expand Down

0 comments on commit 8347d0b

Please sign in to comment.