summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-05-26 00:41:33 -0700
committerFuwn <[email protected]>2022-05-26 00:41:33 -0700
commitabf874cf7f542a36f80385eb99df1d97001ebaa4 (patch)
treeba8e97e72be0b9b98d90f4d324e3818ecea4905a
parentfeat(platypus): reorder members for padding (diff)
downloadwk7_platypusproject-abf874cf7f542a36f80385eb99df1d97001ebaa4.tar.xz
wk7_platypusproject-abf874cf7f542a36f80385eb99df1d97001ebaa4.zip
fix(platypus): reorder ctor
-rw-r--r--platypus/platypus.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/platypus/platypus.h b/platypus/platypus.h
index 7f3e9a8..435d11e 100644
--- a/platypus/platypus.h
+++ b/platypus/platypus.h
@@ -39,8 +39,8 @@ public:
* @authors Ricky and Zoltan
*/
Platypus(float _weight, short _age, std::string _name, std::string _gender)
- : weight(_weight), age(_age), alive(true), mutant(false),
- name(std::move(_name)), gender(std::move(_gender)) {
+ : name(std::move(_name)), gender(std::move(_gender)), weight(_weight),
+ age(_age), alive(true), mutant(false) {
srand(static_cast<unsigned int>(time(nullptr)));
rand();
} // constructor that you can pass values to so as to