summaryrefslogtreecommitdiff
path: root/Aktywator/TeamyTournament.cs
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-09-20 18:31:13 +0200
committeremkael <emkael@tlen.pl>2017-09-20 18:31:13 +0200
commitcf3b807f18c5cf73e9defaabe31b72ea41d0d1ca (patch)
tree33060e3e4e6c6ed53af8a5ceaeb969595345f68f /Aktywator/TeamyTournament.cs
parent84d46db52fe6b9a215720f28f4efd7004bc08d76 (diff)
Fixing current round/segment load in tournaments which did not start yet at all
Diffstat (limited to 'Aktywator/TeamyTournament.cs')
-rw-r--r--Aktywator/TeamyTournament.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/Aktywator/TeamyTournament.cs b/Aktywator/TeamyTournament.cs
index 990583f..825cf84 100644
--- a/Aktywator/TeamyTournament.cs
+++ b/Aktywator/TeamyTournament.cs
@@ -79,6 +79,14 @@ namespace Aktywator
segment[1] = this.getSegmentsNum();
}
}
+ if (segment[0] < 1)
+ {
+ segment[0] = 1;
+ }
+ if (segment[1] < 1)
+ {
+ segment[1] = 1;
+ }
finished.Close();
return segment;
}