[longomatch/redesign2: 29/159] Start numbering players from 1
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch/redesign2: 29/159] Start numbering players from 1
- Date: Thu, 2 Jun 2011 00:12:50 +0000 (UTC)
commit a7335e7b49915953d334ae186ebf14f61039aa66
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]