Permalink
Browse files

Move one line of code

  • Loading branch information...
1 parent 54cece5 commit 987d8fe0916172d28bd1b1514ebf27d8270c462b @jtpalmer committed Jan 10, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Games/Sokoban/SDL.pm
@@ -42,8 +42,8 @@ sub init_level {
foreach my $row ( $level->as_lines ) {
$x = 0;
foreach my $element ( split //, $row ) {
+ $grid->[$x][$y] = $element;
given ($element) {
- $grid->[$x][$y] = $_;
when ('#') {
$wall->blit( $background, undef,
[ $x * $size, $y * $size, $size, $size ] );

0 comments on commit 987d8fe

Please sign in to comment.