Tigran 4 years ago
parent
commit
4cff1730d0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      MafiaTelegramBot/CustomCollections/StatisticsList.cs

+ 1 - 1
MafiaTelegramBot/CustomCollections/StatisticsList.cs

@@ -10,7 +10,7 @@ namespace MafiaTelegramBot.CustomCollections
 
 
         public StatisticsEntity this[Roles role]
         public StatisticsEntity this[Roles role]
         {
         {
-            get => _statistics[role] ?? new StatisticsEntity();
+            get => _statistics.ContainsKey(role) ? _statistics[role] : new StatisticsEntity();
             set => _statistics[role] = value;
             set => _statistics[role] = value;
         }
         }