diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-21 21:51:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-21 21:51:57 +0300 |
commit | e7cff7a519a6cb11e244b99c71c3def8ebf560c3 (patch) | |
tree | 79b205395cdfcfe35d9a319ae06a360a3b7d2b3f /src | |
parent | 284561a7be192b730fb717ee7903b92a2b1d7dc3 (diff) | |
download | mv-e7cff7a519a6cb11e244b99c71c3def8ebf560c3.tar.gz mv-e7cff7a519a6cb11e244b99c71c3def8ebf560c3.tar.bz2 mv-e7cff7a519a6cb11e244b99c71c3def8ebf560c3.tar.xz mv-e7cff7a519a6cb11e244b99c71c3def8ebf560c3.zip |
fix mplint issue.
Diffstat (limited to 'src')
-rw-r--r-- | src/net/eathena/itemflags.h | 16 |
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 |