Added default boardno

This commit is contained in:
Jeroen De Meerleer 2019-09-28 20:40:12 +02:00
parent db9c205bd1
commit 0902c30f36
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
2 changed files with 3 additions and 0 deletions

View File

@ -760,6 +760,7 @@ class Pairtwo6 implements ReaderInterface
$pairing->setRound($x); $pairing->setRound($x);
$offset += 2; $offset += 2;
$pairing->setBoard(-1);
if ($x < $this->getBinaryData("CurrentRound")) { if ($x < $this->getBinaryData("CurrentRound")) {
$this->getTournament()->addPairing($pairing); $this->getTournament()->addPairing($pairing);
} }

View File

@ -473,6 +473,8 @@ class Swar4 implements ReaderInterface
break; break;
} }
$pairing->setColor(new Color($color)); $pairing->setColor(new Color($color));
$pairing->setBoard($this->getTournament()->getBinaryData('Pairing_' . $ptn . '_table'));
$ptn++; $ptn++;
$this->getTournament()->addPairing($pairing); $this->getTournament()->addPairing($pairing);
} }