fix ToolV4 structure

This commit is contained in:
Martin Michelsen
2023-12-10 17:30:58 -08:00
parent a315f6d011
commit 60c1aa71dc
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -207,12 +207,12 @@ public:
struct Tool {
using U16T = typename std::conditional<IsBigEndian, be_uint16_t, le_uint16_t>::type;
using S32T = typename std::conditional<IsBigEndian, be_int32_t, le_int32_t>::type;
using U32T = typename std::conditional<IsBigEndian, be_uint32_t, le_uint32_t>::type;
BaseT base;
U16T amount = 0;
U16T tech = 0;
S32T cost = 0;
uint8_t item_flag = 0;
parray<uint8_t, 3> unused;
U32T item_flag = 0;
} __attribute__((packed));
struct ToolV2 : Tool<ItemBaseV2<false>, false> {
} __attribute__((packed));