|
@@ -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;
|
|
}
|
|
}
|
|
|
|
|