diff options
author | Jesse Luehrs <doy@tozt.net> | 2009-06-01 23:37:29 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2009-06-01 23:37:29 -0500 |
commit | ebd3d2259770772b4f628120e1a581bdc6927546 (patch) | |
tree | 26677fb41f1b76d19d75a8000e0c9787adcb82e1 /lib/Bot/Games/Game/Chess.pm | |
parent | 788d8e02c55ae4a336976cc5d809d8b152d4ae7f (diff) | |
download | bot-games-ebd3d2259770772b4f628120e1a581bdc6927546.tar.gz bot-games-ebd3d2259770772b4f628120e1a581bdc6927546.zip |
clean up undef warning
Diffstat (limited to 'lib/Bot/Games/Game/Chess.pm')
-rw-r--r-- | lib/Bot/Games/Game/Chess.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Bot/Games/Game/Chess.pm b/lib/Bot/Games/Game/Chess.pm index abd94fd..a899a4c 100644 --- a/lib/Bot/Games/Game/Chess.pm +++ b/lib/Bot/Games/Game/Chess.pm @@ -33,7 +33,7 @@ augment turn => sub { unless $self->has_player($player); my $player_index = $self->game->to_move ? 0 : 1; return "It's not your turn" - if $player ne $self->players->[$player_index]; + if $player ne ($self->players->[$player_index] || ''); my $status = eval { $self->game->go_move($move) }; return $@ if $@; |