diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-05-25 15:10:04 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-05-25 15:10:04 -0400 |
commit | ed332d993c9b5b3c8bec2eae957005e445d21376 (patch) | |
tree | cdc2e43772981f24293da1beaa85818cc6f0a378 | |
parent | ab47ed016d0444707f5441b63db2ca89b8585201 (diff) | |
download | games-smtnocturne-demons-ed332d993c9b5b3c8bec2eae957005e445d21376.tar.gz games-smtnocturne-demons-ed332d993c9b5b3c8bec2eae957005e445d21376.zip |
make sure this is always defined
-rw-r--r-- | lib/Games/SMTNocturne/Demons.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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); |