From ed332d993c9b5b3c8bec2eae957005e445d21376 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 25 May 2014 15:10:04 -0400 Subject: make sure this is always defined --- 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 6a06272..b54eda8 100644 --- a/lib/Games/SMTNocturne/Demons.pm +++ b/lib/Games/SMTNocturne/Demons.pm @@ -7,7 +7,7 @@ use Games::SMTNocturne::Demons::FusionChart; sub fuse { my ($demon1, $demon2, $options) = @_; - $options = { %$options }; + $options = { %{ $options || {} } }; $demon1 = Games::SMTNocturne::Demons::Demon->from_name($demon1) unless ref($demon1); -- cgit v1.2.3