summaryrefslogtreecommitdiffstats
path: root/lib/Games/SMTNocturne/Demons.pm
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-05-25 11:46:59 -0400
committerJesse Luehrs <doy@tozt.net>2014-05-25 11:46:59 -0400
commitb4e721827d8b404668fde2447e93e57c31c3bee1 (patch)
tree9cca0f2e0db6ec768f5a37e5faded74bc54cb85d /lib/Games/SMTNocturne/Demons.pm
parent3915741eccf2c74b7be8043dce10b81161bf4854 (diff)
downloadgames-smtnocturne-demons-b4e721827d8b404668fde2447e93e57c31c3bee1.tar.gz
games-smtnocturne-demons-b4e721827d8b404668fde2447e93e57c31c3bee1.zip
avoid undef warning
Diffstat (limited to 'lib/Games/SMTNocturne/Demons.pm')
-rw-r--r--lib/Games/SMTNocturne/Demons.pm2
1 files changed, 1 insertions, 1 deletions
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;
}
}
}