summaryrefslogtreecommitdiff
path: root/common/action.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/action.cpp')
-rw-r--r--common/action.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/action.cpp b/common/action.cpp
index 77988d6..527d25e 100644
--- a/common/action.cpp
+++ b/common/action.cpp
@@ -1,14 +1,14 @@
#include "action.h"
#include <algorithm>
-Action::Action() {
+Action::Action() : target_type(None), target_offset(0) {
}
-Action::Action(Type ty, int ta) : type(ty), target(ta) {
+Action::Action(Type ty, TargetType tt, int to) : type(ty), target_type(tt), target_offset(to) {
}
bool Action::operator==(const Action& other) {
- return type == other.type && target == other.target;
+ return type == other.type && target_type == other.target_type && target_offset == other.target_offset;
}