summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/net/eathena/itemflags.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/net/eathena/itemflags.h b/src/net/eathena/itemflags.h
index c7af6ee95..81a22ecb4 100644
--- a/src/net/eathena/itemflags.h
+++ b/src/net/eathena/itemflags.h
@@ -25,15 +25,17 @@
namespace EAthena
{
+ struct ItemFlagBits final
+ {
+ unsigned char isIdentified : 1;
+ unsigned char isDamaged : 1;
+ unsigned char isFavorite : 1;
+ unsigned char spareBits : 5;
+ };
+
union ItemFlags final
{
- struct bits
- {
- unsigned char isIdentified : 1;
- unsigned char isDamaged : 1;
- unsigned char isFavorite : 1;
- unsigned char spareBits : 5;
- } bits;
+ ItemFlagBits bits;
uint8_t byte;
} __attribute__((packed));
} // namespace EAthena