From: Steinar H. Gunderson Date: Sun, 21 Dec 2014 23:54:05 +0000 (+0100) Subject: Fix a warning. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=804c3f70dfd6575f18763df88d475e5190d97d3c;p=remoteglot-book Fix a warning. --- diff --git a/www/opening-stats.pl b/www/opening-stats.pl index ad578a0..696bfa1 100755 --- a/www/opening-stats.pl +++ b/www/opening-stats.pl @@ -69,7 +69,7 @@ for my $move (@{$root_aux_data->{'moves'}}) { } # Get stats for the root position, for the human index. -my $start_pos = Position->start_pos; +my $start_pos = Position->start_pos("white", "black"); my ($json_start_pos, undef) = get_json_move($start_pos, 0, $chld_in, $chld_out); my $total_games = $json_start_pos->{'white'} + $json_start_pos->{'draw'} + $json_start_pos->{'black'}; my $computer_games = $json_start_pos->{'computer'} * 1;