From e5ae6b60b07a7bd8ac0cc6541fd061a00a764b35 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 25 May 2014 02:45:26 -0400 Subject: avoid undef warning --- lib/Games/SMTNocturne/Demons/FusionChart.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Games/SMTNocturne/Demons/FusionChart.pm b/lib/Games/SMTNocturne/Demons/FusionChart.pm index 6d2967c..45eb098 100644 --- a/lib/Games/SMTNocturne/Demons/FusionChart.pm +++ b/lib/Games/SMTNocturne/Demons/FusionChart.pm @@ -24,7 +24,7 @@ sub unfuse { for my $type1 (keys %TYPES) { for my $type2 (grep { $_ ge $type1 } keys %TYPES) { push @combinations, [ $type1, $type2 ] - if $TYPES{$type1}{$type2} eq $type; + if ($TYPES{$type1}{$type2} || '') eq $type; } } -- cgit v1.2.3