diff options
Diffstat (limited to 'lib/GridFiller.pm')
-rw-r--r-- | lib/GridFiller.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/GridFiller.pm b/lib/GridFiller.pm index f88d94f..3932f0d 100644 --- a/lib/GridFiller.pm +++ b/lib/GridFiller.pm @@ -79,7 +79,7 @@ sub fill { $self->log->debug("Placing $word"); - my ($x,$y,$dir) = $chooser->find_place_for($word); + my ($space,$x,$y,$dir) = $chooser->find_place_for($word); if (! defined $x) { $self->log->debug("No place for $word"); @@ -87,8 +87,8 @@ sub fill { next; }; - $result->place_word_at($word,$x,$y,$dir); - $status->place_word_at($word,$x,$y,$dir); + $result->place_word_at($word,$space,$x,$y,$dir); + $status->place_word_at($word,$space,$x,$y,$dir); if ($self->log->is_debug) { $self->log->debug($status->to_string); |