diff options
Diffstat (limited to 'src/map/send.c')
-rw-r--r-- | src/map/send.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/send.c b/src/map/send.c index ccfb052..2739e7b 100644 --- a/src/map/send.c +++ b/src/map/send.c @@ -62,9 +62,9 @@ void send_local_message(int fd, struct block_list* bl, const char* msg) } WFIFOHEAD (fd, msg_len + 8); - WBUFW (fd, 0) = 0x8d; - WBUFW (fd, 2) = msg_len + 8; - WBUFL (fd, 4) = bl->id; - safestrncpy((char*)WBUFP(fd, 8), msg, msg_len); + WFIFOW (fd, 0) = 0x8d; + WFIFOW (fd, 2) = msg_len + 8; + WFIFOL (fd, 4) = bl->id; + safestrncpy((char*)WFIFOP(fd, 8), msg, msg_len); WFIFOSET (fd, msg_len + 8); } |