From abf874cf7f542a36f80385eb99df1d97001ebaa4 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 26 May 2022 00:41:33 -0700 Subject: fix(platypus): reorder ctor --- platypus/platypus.h | 4 ++-- 1 file 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(time(nullptr))); rand(); } // constructor that you can pass values to so as to -- cgit v1.2.3