Skip to content

Commit

Permalink
Fixed a crash in tournament list cursor calculation. (heroiclabs#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
zengjie authored and zyro committed Oct 15, 2018
1 parent 09ade67 commit 7bd0cbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/core_tournament.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ WHERE duration > 0 AND start_time >= $1 AND end_time <= $2 AND category >= $3 AN
if count <= limit {
records = append(records, tournament)
} else if count > limit {
newCursor.TournamentId = records[limit].Id
newCursor.TournamentId = records[limit-1].Id
}
}

Expand Down

0 comments on commit 7bd0cbc

Please sign in to comment.