Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[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
Carl Mäsak authored November 09, 2010

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. 1  lib/Druid/Game.pm
1  lib/Druid/Game.pm
@@ -41,6 +41,7 @@ submethod BUILD(:$size = 3) {
41 41
     @!heights = map { [ 0 xx $size ] }, ^$size;
42 42
     @!colors  = map { [ 0 xx $size ] }, ^$size;
43 43
     $!player-to-move = 1;
  44
+    $!moves-so-far = 0;
44 45
     # RAKUDO: These attributes should be auto-initialized
45 46
     $!size = $size;
46 47
 }

0 notes on commit 13bf2ab

Please sign in to comment.
Something went wrong with that request. Please try again.