[longomatch/redesign: 20/96] Start numbering players from 1



commit b55869781034d92e23eb734cfbecf38378818ea9
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]