[longomatch] Fix starting players when the count is lower than the tactics



commit 01969d7fc31b6c5d121ce3de43430947169afd7d
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Mon Oct 13 18:14:49 2014 +0200

    Fix starting players when the count is lower than the tactics

 LongoMatch.Core/Store/Templates/TeamTemplate.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.Core/Store/Templates/TeamTemplate.cs b/LongoMatch.Core/Store/Templates/TeamTemplate.cs
index fd702ea..8376938 100644
--- a/LongoMatch.Core/Store/Templates/TeamTemplate.cs
+++ b/LongoMatch.Core/Store/Templates/TeamTemplate.cs
@@ -111,7 +111,7 @@ namespace LongoMatch.Core.Store.Templates
                public List<Player> StartingPlayersList {
                        get {
                                List<Player> playingPlayers = PlayingPlayersList;
-                               int count = Math.Min (StartingPlayers, StartingPlayers);
+                               int count = Math.Min (StartingPlayers, List.Count);
                                return playingPlayers.GetRange (0, count);
                        }
                }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]