aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/ManaTools/Shared/ActionsRole.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ManaTools/Shared/ActionsRole.pm b/lib/ManaTools/Shared/ActionsRole.pm
index 888750b3..e4c69c69 100644
--- a/lib/ManaTools/Shared/ActionsRole.pm
+++ b/lib/ManaTools/Shared/ActionsRole.pm
@@ -118,7 +118,7 @@ sub act {
my $key = shift;
my $acts = $self->acts();
for my $action (@{$self->acts()}) {
- if ($key == $action->name()) {
+ if ($key eq $action->name()) {
return $action->act($self, @_);
}
}
@@ -179,7 +179,7 @@ sub remove_action {
my $index = scalar(@{$acts});
while ($index > 0) {
$index = $index - 1;
- if ($acts->[$index]->name() == $key) {
+ if ($acts->[$index]->name() eq $key) {
delete $acts->[$index];
}
}