summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-08-12 21:54:00 +0300
committerAndrei Karas <akaras@inbox.ru>2015-08-12 21:54:00 +0300
commitd94e114da004973dbf97c1f46d4cdf6b6a4e0384 (patch)
treeb9bf1fa8849f5c862e7b32f41057ad3d7f9bd466
parent759839dc25b4f022ebeb482822cf46cc8eebf4a1 (diff)
downloadhercules-d94e114da004973dbf97c1f46d4cdf6b6a4e0384.tar.gz
hercules-d94e114da004973dbf97c1f46d4cdf6b6a4e0384.tar.bz2
hercules-d94e114da004973dbf97c1f46d4cdf6b6a4e0384.tar.xz
hercules-d94e114da004973dbf97c1f46d4cdf6b6a4e0384.zip
Fix weapon field size in char_mmo_char_tobuf.
-rw-r--r--src/char/char.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/char/char.c b/src/char/char.c
index c731c89ee..e70a4b762 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -1988,7 +1988,7 @@ int char_mmo_char_tobuf(uint8* buffer, struct mmo_charstatus* p) {
//When the weapon is sent and your option is riding, the client crashes on login!?
// FIXME[Haru]: is OPTION_HANBOK intended to be part of this list? And if it is, should the list also include other OPTION_ costumes?
- WBUFL(buf,56) = p->option&(OPTION_RIDING|OPTION_DRAGON|OPTION_WUG|OPTION_WUGRIDER|OPTION_MADOGEAR|OPTION_HANBOK) ? 0 : p->weapon;
+ WBUFW(buf,56) = p->option&(OPTION_RIDING|OPTION_DRAGON|OPTION_WUG|OPTION_WUGRIDER|OPTION_MADOGEAR|OPTION_HANBOK) ? 0 : p->weapon;
WBUFW(buf,58) = p->base_level;
WBUFW(buf,60) = min(p->skill_point, INT16_MAX);