summaryrefslogtreecommitdiff
path: root/Aktywator/Bws.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Aktywator/Bws.cs')
-rw-r--r--Aktywator/Bws.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/Aktywator/Bws.cs b/Aktywator/Bws.cs
index 9533c7e..9c2df11 100644
--- a/Aktywator/Bws.cs
+++ b/Aktywator/Bws.cs
@@ -417,13 +417,21 @@ namespace Aktywator
else return 0;
}
+ public int lowSection()
+ {
+ string s = sql.selectOne("SELECT min(`Section`) FROM `Tables`");
+ int i;
+ if (int.TryParse(s, out i)) return i;
+ else return 0;
+ }
+
public void loadHandRecords(PBN pbn)
{
sql.query("DELETE FROM HandRecord");
sql.query("DELETE FROM HandEvaluation");
for (int i = 0; i < pbn.handRecords.Length; i++)
if (pbn.handRecords[i] != null)
- for (int section = 1; section <= highSection(); section++)
+ for (int section = lowSection(); section <= highSection(); section++)
{
HandRecord b = pbn.handRecords[i];
StringBuilder str = new StringBuilder(50);