summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2009-06-01 23:37:29 -0500
committerJesse Luehrs <doy@tozt.net>2009-06-01 23:37:29 -0500
commitebd3d2259770772b4f628120e1a581bdc6927546 (patch)
tree26677fb41f1b76d19d75a8000e0c9787adcb82e1
parent788d8e02c55ae4a336976cc5d809d8b152d4ae7f (diff)
downloadbot-games-ebd3d2259770772b4f628120e1a581bdc6927546.tar.gz
bot-games-ebd3d2259770772b4f628120e1a581bdc6927546.zip
clean up undef warning
-rw-r--r--lib/Bot/Games/Game/Chess.pm2
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 $@;