summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-21 21:51:57 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-21 21:51:57 +0300
commite7cff7a519a6cb11e244b99c71c3def8ebf560c3 (patch)
tree79b205395cdfcfe35d9a319ae06a360a3b7d2b3f
parent284561a7be192b730fb717ee7903b92a2b1d7dc3 (diff)
downloadplus-e7cff7a519a6cb11e244b99c71c3def8ebf560c3.tar.gz
plus-e7cff7a519a6cb11e244b99c71c3def8ebf560c3.tar.bz2
plus-e7cff7a519a6cb11e244b99c71c3def8ebf560c3.tar.xz
plus-e7cff7a519a6cb11e244b99c71c3def8ebf560c3.zip
fix mplint issue.
-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