diff --git a/Hearthstone Deck Tracker/Controls/Overlay/Battlegrounds/Session/BattlegroundsSessionViewModel.xaml.cs b/Hearthstone Deck Tracker/Controls/Overlay/Battlegrounds/Session/BattlegroundsSessionViewModel.xaml.cs index 93ceb48fd..698864e79 100644 --- a/Hearthstone Deck Tracker/Controls/Overlay/Battlegrounds/Session/BattlegroundsSessionViewModel.xaml.cs +++ b/Hearthstone Deck Tracker/Controls/Overlay/Battlegrounds/Session/BattlegroundsSessionViewModel.xaml.cs @@ -66,9 +66,9 @@ public void UpdateSectionsVisibilities() private void UpdateBannedTribes() { - var allRaces = _db.Value.Races; - var availableRaces = BattlegroundsUtils.GetAvailableRaces(Core.Game.CurrentGameStats?.GameId) ?? allRaces; - var unavailableRaces = allRaces.Where(x => !availableRaces.Contains(x) && x != Race.INVALID && x != Race.ALL) + var allRaces = _db.Value.Races.Where(x => x != Race.INVALID && x != Race.ALL).ToList(); + var availableRaces = BattlegroundsUtils.GetAvailableRaces(Core.Game.CurrentGameStats?.GameId)?.ToList() ?? allRaces; + var unavailableRaces = allRaces.Where(x => !availableRaces.Contains(x)) .OrderBy(t => HearthDbConverter.GetLocalizedRace(t) ?? "") .ToList();