Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[Druid::Game] initialized attribute to 0

Nowadays (in ng) not initializing something to 0 and then doing a
numeric comparison triggers an undefinedness warning.
  • Loading branch information...
commit 13bf2abee90a9f1cbb7a57ba626ce7763b5917a4 1 parent 383fc26
@masak authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/Druid/Game.pm
View
1  lib/Druid/Game.pm
@@ -41,6 +41,7 @@ submethod BUILD(:$size = 3) {
@!heights = map { [ 0 xx $size ] }, ^$size;
@!colors = map { [ 0 xx $size ] }, ^$size;
$!player-to-move = 1;
+ $!moves-so-far = 0;
# RAKUDO: These attributes should be auto-initialized
$!size = $size;
}
Please sign in to comment.
Something went wrong with that request. Please try again.