Fixed reading tournamentyear

This commit is contained in:
Jeroen De Meerleer 2019-02-12 18:04:12 +01:00
parent 523cfe10ed
commit 512aebdc70
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6

View File

@ -460,7 +460,7 @@ class Sws extends SwsModel
$offset += $length;
// Organising club
$length = 12;
$length = 8;
$sws->getTournament()->setOrganiserClub(self::ReadData('String', substr($swscontents, $offset, $length)));
$offset += $length;
@ -470,7 +470,7 @@ class Sws extends SwsModel
$offset += $length;
// Round dates
for ($i = 1; $i < $sws->getTournament()->getNoOfRounds(); $i++) {
for ($i = 0; $i < $sws->getTournament()->getNoOfRounds(); $i++) {
$length = 4;
$sws->setBinaryData('Round_' . $i . '_date', self::ReadData('Date', substr($swscontents, $offset, $length)));
$offset += $length;