diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/CMI.cpp | 4 | ||||
| -rw-r--r-- | src/CMI.hpp | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/CMI.cpp b/src/CMI.cpp index a57bceb..a50269a 100644 --- a/src/CMI.cpp +++ b/src/CMI.cpp @@ -6,11 +6,11 @@ HalfMove::HalfMove() : number(1), isBlack(false), NAG(0), parent(nullptr), mainline(nullptr) {} HalfMove::HalfMove(const std::string &SAN) - : number(1), isBlack(false), parent(nullptr), mainline(nullptr) {} + : SAN(SAN), number(1), isBlack(false), parent(nullptr), mainline(nullptr) {} HalfMove::HalfMove(const std::string &SAN, const std::string &comment, std::uint16_t number, std::uint8_t NAG, bool isBlack) - : SAN(SAN), comment(comment), number(number), NAG(NAG), isBlack(isBlack), + : SAN(SAN), comment(comment), number(number), isBlack(isBlack), NAG(NAG), parent(nullptr), mainline(nullptr) {} HalfMove::~HalfMove() { diff --git a/src/CMI.hpp b/src/CMI.hpp index 999a0dc..bab5f20 100644 --- a/src/CMI.hpp +++ b/src/CMI.hpp @@ -16,13 +16,13 @@ namespace CMI { */ class HalfMove { - HalfMove *parent; - HalfMove *mainline; std::vector<HalfMove *> variations; std::string SAN, comment; std::uint16_t number; - std::uint8_t NAG; bool isBlack; + std::uint8_t NAG; + HalfMove *parent; + HalfMove *mainline; /// @brief Set the parent of current CMI::HalfMove, only used internally void SetParent(HalfMove *); |
