use default valuse for CharacterStats

This commit is contained in:
Martin Michelsen
2023-06-27 00:25:19 -07:00
parent 42c5c496dc
commit aced59ea7a
2 changed files with 7 additions and 18 deletions
+7 -9
View File
@@ -7,15 +7,13 @@
#include <string> #include <string>
struct CharacterStats { struct CharacterStats {
le_uint16_t atp; le_uint16_t atp = 0;
le_uint16_t mst; le_uint16_t mst = 0;
le_uint16_t evp; le_uint16_t evp = 0;
le_uint16_t hp; le_uint16_t hp = 0;
le_uint16_t dfp; le_uint16_t dfp = 0;
le_uint16_t ata; le_uint16_t ata = 0;
le_uint16_t lck; le_uint16_t lck = 0;
CharacterStats() noexcept;
} __attribute__((packed)); } __attribute__((packed));
class LevelTable { // from PlyLevelTbl.prs class LevelTable { // from PlyLevelTbl.prs
-9
View File
@@ -27,15 +27,6 @@ static const string ACCOUNT_FILE_SIGNATURE =
static FileContentsCache player_files_cache(300 * 1000 * 1000); static FileContentsCache player_files_cache(300 * 1000 * 1000);
CharacterStats::CharacterStats() noexcept
: atp(0),
mst(0),
evp(0),
hp(0),
dfp(0),
ata(0),
lck(0) {}
PlayerStats::PlayerStats() noexcept PlayerStats::PlayerStats() noexcept
: level(0), : level(0),
experience(0), experience(0),