summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-05-25 15:10:04 -0400
committerJesse Luehrs <doy@tozt.net>2014-05-25 15:10:04 -0400
commited332d993c9b5b3c8bec2eae957005e445d21376 (patch)
treecdc2e43772981f24293da1beaa85818cc6f0a378
parentab47ed016d0444707f5441b63db2ca89b8585201 (diff)
downloadgames-smtnocturne-demons-ed332d993c9b5b3c8bec2eae957005e445d21376.tar.gz
games-smtnocturne-demons-ed332d993c9b5b3c8bec2eae957005e445d21376.zip
make sure this is always defined
-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 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);