From 96a93098a1969567f1d12dd69859fa62174cd988 Mon Sep 17 00:00:00 2001 From: Haru Date: Tue, 29 Oct 2013 18:32:10 +0100 Subject: Follow-up to baef78f7954fa4e6fa2449f2c7de92a901c7f5f3 - Corrected an issue with items showing up as Unknown on certain systems due to structure size mismatch. - Special thanks to ossi0110. Signed-off-by: Haru --- src/map/packets_struct.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/map/packets_struct.h') diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index e9a582582..813aebee0 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -215,9 +215,9 @@ struct NORMALITEM_INFO { #endif #if PACKETVER >= 20120925 struct { - unsigned int IsIdentified : 1; - unsigned int PlaceETCTab : 1; - unsigned int SpareBits : 6; + unsigned char IsIdentified : 1; + unsigned char PlaceETCTab : 1; + unsigned char SpareBits : 6; } Flag; #endif } __attribute__((packed)); @@ -252,10 +252,10 @@ struct EQUIPITEM_INFO { #endif #if PACKETVER >= 20120925 struct { - unsigned int IsIdentified : 1; - unsigned int IsDamaged : 1; - unsigned int PlaceETCTab : 1; - unsigned int SpareBits : 5; + unsigned char IsIdentified : 1; + unsigned char IsDamaged : 1; + unsigned char PlaceETCTab : 1; + unsigned char SpareBits : 5; } Flag; #endif } __attribute__((packed)); -- cgit v1.2.3-60-g2f50