aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/Component.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe/Component.cpp')
-rw-r--r--src/crepe/Component.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/crepe/Component.cpp b/src/crepe/Component.cpp
index 8086492..1aed507 100644
--- a/src/crepe/Component.cpp
+++ b/src/crepe/Component.cpp
@@ -5,7 +5,8 @@ using namespace std;
Component::Component(game_object_id_t id) : game_object_id(id) {}
-Component & Component::operator=(const Component &) {
+Component & Component::operator=(const Component & other) {
+ this->active = other.active;
return *this;
}