From 8e7f77d7f7ada19b1b08731fc6741c0963aafc3d Mon Sep 17 00:00:00 2001 From: max-001 Date: Wed, 6 Nov 2024 13:08:51 +0100 Subject: Default value defined in class instead of constructor --- src/crepe/Component.cpp | 2 +- src/crepe/Component.h | 2 +- 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 -- cgit v1.2.3