Tigran 4 년 전
부모
커밋
4cff1730d0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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]
         {
-            get => _statistics[role] ?? new StatisticsEntity();
+            get => _statistics.ContainsKey(role) ? _statistics[role] : new StatisticsEntity();
             set => _statistics[role] = value;
         }