summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2013-10-29 18:32:10 +0100
committerHaru <haru@dotalux.com>2013-10-29 18:32:10 +0100
commit96a93098a1969567f1d12dd69859fa62174cd988 (patch)
treed01660419d68b7c63e8c5b658b3fd89bccb62481 /src/map
parentcde3dff870ec0056c6bbd4c32be3306952000440 (diff)
downloadhercules-96a93098a1969567f1d12dd69859fa62174cd988.tar.gz
hercules-96a93098a1969567f1d12dd69859fa62174cd988.tar.bz2
hercules-96a93098a1969567f1d12dd69859fa62174cd988.tar.xz
hercules-96a93098a1969567f1d12dd69859fa62174cd988.zip
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 <haru@dotalux.com>
Diffstat (limited to 'src/map')
-rw-r--r--src/map/packets_struct.h14
1 files changed, 7 insertions, 7 deletions
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));