[longomatch/redesign3: 19/143] Start numbering players from 1
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch/redesign3: 19/143] Start numbering players from 1
- Date: Mon, 15 Aug 2011 22:46:48 +0000 (UTC)
commit 24614eabf54fa79bcdb210da940ee38c708f8f96
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]