diff options
-rw-r--r-- | src/char/char.c | 1 | ||||
-rw-r--r-- | src/login/login.c | 9 |
2 files changed, 4 insertions, 6 deletions
diff --git a/src/char/char.c b/src/char/char.c index 3c12b84..b8ce145 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -2458,7 +2458,6 @@ int parse_char(int fd) { memcpy(WFIFOP(login_fd,6), RFIFOP(fd,2), 24); memcpy(WFIFOP(login_fd,30), RFIFOP(fd,26), 24); WFIFOSET(login_fd,54); - } RFIFOSKIP(fd,50); break; diff --git a/src/login/login.c b/src/login/login.c index 29e3959..bf28e48 100644 --- a/src/login/login.c +++ b/src/login/login.c @@ -1709,11 +1709,10 @@ int parse_fromchar(int fd) { break; } } - unsigned char buf[16]; - WBUFW(buf,0) = 0x2741; - WBUFL(buf,2) = acc; - WBUFB(buf,6) = status; // 0: acc not found, 1: success, 2: password mismatch, 3: pass too short - charif_sendallwos(-1, buf, 7); + WFIFOW(fd,0) = 0x2741; + WFIFOL(fd,2) = acc; + WFIFOB(fd,6) = status; // 0: acc not found, 1: success, 2: password mismatch, 3: pass too short + WFIFOSET(fd,7); } RFIFOSKIP(fd, 54); |