handle V2 mag encoding properly

This commit is contained in:
Martin Michelsen
2023-10-21 11:48:31 -07:00
parent 05d508230b
commit 81edf93e3b
7 changed files with 109 additions and 63 deletions
+3
View File
@@ -77,6 +77,9 @@ struct PlayerInventory {
size_t find_equipped_mag() const;
size_t remove_all_items_of_type(uint8_t data0, int16_t data1 = -1);
void decode_mags(GameVersion version);
void encode_mags(GameVersion version);
} __attribute__((packed));
struct PlayerBank {