From cd9fca48ad3fcb86fe4b4f159c68595859077998 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 7 Jan 2018 03:30:16 +0300 Subject: Send wrong bank status by bank check packet status in clif_parse_BankCheck. --- src/map/clif.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/map/clif.c b/src/map/clif.c index b5e71ab95..378e5c268 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -18462,19 +18462,19 @@ void clif_parse_BankWithdraw(int fd, struct map_session_data *sd) void clif_parse_BankCheck(int fd, struct map_session_data* sd) __attribute__((nonnull (2))); void clif_parse_BankCheck(int fd, struct map_session_data* sd) { -#if PACKETVER >= 20130313 +#if PACKETVER >= 20130320 struct packet_banking_check p; + p.PacketType = banking_checkType; if (!battle_config.feature_banking) { - clif->messagecolor_self(fd, COLOR_RED, msg_fd(fd,1483)); - return; + p.Money = 0; + p.Reason = (short)1; + } else { + p.Money = (int)sd->status.bank_vault; + p.Reason = (short)0; } - p.PacketType = banking_checkType; - p.Money = (int)sd->status.bank_vault; - p.Reason = (short)0; - - clif->send(&p,sizeof(p), &sd->bl, SELF); + clif->send(&p, sizeof(p), &sd->bl, SELF); #endif } -- cgit v1.2.3-60-g2f50