aboutsummaryrefslogtreecommitdiff
path: root/src/crepe
diff options
context:
space:
mode:
authormax-001 <maxsmits21@kpnmail.nl>2024-11-06 13:08:51 +0100
committermax-001 <maxsmits21@kpnmail.nl>2024-11-06 13:08:51 +0100
commit8e7f77d7f7ada19b1b08731fc6741c0963aafc3d (patch)
tree41ce945154a6fa16c1eee4b2a19e0703d2fdc42a /src/crepe
parentb2dea4e5f127e78fe9ff67e2504b8943085fe3b1 (diff)
Default value defined in class instead of constructor
Diffstat (limited to 'src/crepe')
-rw-r--r--src/crepe/Component.cpp2
-rw-r--r--src/crepe/Component.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/crepe/Component.cpp b/src/crepe/Component.cpp
index 358ce31..230bb70 100644
--- a/src/crepe/Component.cpp
+++ b/src/crepe/Component.cpp
@@ -2,4 +2,4 @@
using namespace crepe;
-Component::Component(uint32_t id) : game_object_id(id), active(true) {}
+Component::Component(uint32_t id) : game_object_id(id) {}
diff --git a/src/crepe/Component.h b/src/crepe/Component.h
index 8db9b2a..40e6f49 100644
--- a/src/crepe/Component.h
+++ b/src/crepe/Component.h
@@ -17,7 +17,7 @@ public:
public:
uint32_t game_object_id;
- bool active;
+ bool active = true;
};
} // namespace crepe