[longomatch/redesign: 19/47] Start numbering players from 1



commit 0882c2c08137874466dc4eab41af6d66e530658f
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Sat Nov 20 21:18:41 2010 +0100

    Start numbering players from 1

 LongoMatch/DB/TeamTemplate.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch/DB/TeamTemplate.cs b/LongoMatch/DB/TeamTemplate.cs
index ab9d9d7..4dc73db 100644
--- a/LongoMatch/DB/TeamTemplate.cs
+++ b/LongoMatch/DB/TeamTemplate.cs
@@ -83,13 +83,13 @@ namespace LongoMatch.DB
 		}
 		
 		private void CreateDefaultTemplate(int playersCount) {
-			for (int i=0; i<playersCount;i++) {
+			for (int i=1; i<=playersCount;i++) {
 				playersList.Add(new Player{
 					Name = "Player " + i,
 					Birthday = new DateTime(),
 					Height = 1.80f,
 					Weight = 80,
-					Number = 0,
+					Number = i,
 					Position = "",
 					Photo = null,
 					Playing = true,



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