summaryrefslogtreecommitdiff
path: root/Aktywator
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
parent84d46db52fe6b9a215720f28f4efd7004bc08d76 (diff)
Fixing current round/segment load in tournaments which did not start yet at all
Diffstat (limited to 'Aktywator')
-rw-r--r--Aktywator/Resources/BuildDate.txt2
-rw-r--r--Aktywator/TeamyTournament.cs8
2 files changed, 9 insertions, 1 deletions
diff --git a/Aktywator/Resources/BuildDate.txt b/Aktywator/Resources/BuildDate.txt
index fd33c7a..837d0f1 100644
--- a/Aktywator/Resources/BuildDate.txt
+++ b/Aktywator/Resources/BuildDate.txt
@@ -1 +1 @@
-2017-09-19
+2017-09-20
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;
}