Ensure unicity within Game.turns

pull/88/head
Alexis Drai 3 years ago
parent 2556b46192
commit a03c1f4526

@ -96,8 +96,11 @@ namespace Model.Games
player, player,
ThrowAll() ThrowAll()
); );
if(turn != null && !(turns.Contains(turn)))
{
turns.Add(turn); turns.Add(turn);
} }
}
/// <summary> /// <summary>
/// finds and returns the player whose turn it is /// finds and returns the player whose turn it is

Loading…
Cancel
Save