]> git.sesse.net Git - remoteglot-book/commitdiff
Fix a warning.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 21 Dec 2014 23:54:05 +0000 (00:54 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 21 Dec 2014 23:54:05 +0000 (00:54 +0100)
www/opening-stats.pl

index ad578a0b7db95747cfcba67b80bc81ede6eca190..696bfa147c2d5e2017bc8ff8737231e4828e2b54 100755 (executable)
@@ -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;