--- deliantra/Deliantra-Client/DC/Macro.pm 2006/12/09 21:44:43 1.2 +++ deliantra/Deliantra-Client/DC/Macro.pm 2006/12/09 22:06:51 1.3 @@ -340,7 +340,7 @@ ); $macros->add (1, $y, new CFPlus::UI::Label - text => (join "; ", @{ $macro->{action} }), + text => (join "; ", @{ $macro->{action} || [] }), tooltip => $tooltip_commands . $tooltip_common, expand => 1, ellipsise => 3, @@ -359,14 +359,13 @@ # this is a shortcut method that asks for a binding # and then just binds it. sub quick_macro { - my ($self, $cmds, $end_cb) = @_; + my ($cmds, $end_cb) = @_; my $macro = { action => $cmds, }; trigger_edit $macro, sub { - if ($_[0]) { push @{ $::PROFILE->{macro} }, $macro; $REFRESH_MACRO_LIST->();