summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/action.cpp2
-rw-r--r--common/action.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/common/action.cpp b/common/action.cpp
index 467df4e..188535e 100644
--- a/common/action.cpp
+++ b/common/action.cpp
@@ -1,7 +1,7 @@
#include "action.h"
#include <algorithm>
-bool Action::operator==(Action other) {
+bool Action::operator==(const Action& other) {
return type == other.type && target == other.target;
}
diff --git a/common/action.h b/common/action.h
index 7ad84ee..a2dc6e4 100644
--- a/common/action.h
+++ b/common/action.h
@@ -26,7 +26,7 @@ class Action {
int target;
//! Compare to another action.
- bool operator==(Action other);
+ bool operator==(const Action& other);
template<class Archive>
void serialize(Archive & ar, const unsigned int version) {