make all file/network-related structs packed

This commit is contained in:
Martin Michelsen
2022-03-29 00:12:16 -07:00
parent b61a9bcdcb
commit 5c388c4052
12 changed files with 147 additions and 149 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ struct LevelStats {
uint32_t experience; // EXP value of this level
void apply(PlayerStats& ps) const;
};
} __attribute__((packed));
// level table format (PlyLevelTbl.prs)
struct LevelTable {
@@ -28,4 +28,4 @@ struct LevelTable {
const PlayerStats& base_stats_for_class(uint8_t char_class) const;
const LevelStats& stats_for_level(uint8_t char_class, uint8_t level) const;
};
} __attribute__((packed));