From e7cff7a519a6cb11e244b99c71c3def8ebf560c3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 21 Oct 2014 21:51:57 +0300 Subject: fix mplint issue. --- src/net/eathena/itemflags.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src/net/eathena/itemflags.h') 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 -- cgit v1.2.3-70-g09d2