From b4e721827d8b404668fde2447e93e57c31c3bee1 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 25 May 2014 11:46:59 -0400 Subject: avoid undef warning --- lib/Games/SMTNocturne/Demons.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Games/SMTNocturne/Demons.pm b/lib/Games/SMTNocturne/Demons.pm index 386ce0c..f24518c 100644 --- a/lib/Games/SMTNocturne/Demons.pm +++ b/lib/Games/SMTNocturne/Demons.pm @@ -54,7 +54,7 @@ sub fusions_for { for my $demon1 (Games::SMTNocturne::Demons::Demon->from_type($type1)) { for my $demon2 (Games::SMTNocturne::Demons::Demon->from_type($type2)) { push @fusions, [ $demon1, $demon2 ] - if fuse($demon1, $demon2) eq $demon; + if (fuse($demon1, $demon2) || '') eq $demon; } } } -- cgit v1.2.3-54-g00ecf