From fa99b3612a8eadf8d54df47881ddfb7f67139d89 Mon Sep 17 00:00:00 2001
From: Andrei Karas <akaras@inbox.ru>
Date: Wed, 4 Jul 2018 06:18:22 +0300
Subject: Add new auth error packet for main and re packet versions.

---
 src/login/lclif.c        | 2 +-
 src/map/packets_struct.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

(limited to 'src')

diff --git a/src/login/lclif.c b/src/login/lclif.c
index f8fd30105..48a9c6b94 100644
--- a/src/login/lclif.c
+++ b/src/login/lclif.c
@@ -311,7 +311,7 @@ static bool lclif_send_server_list(struct login_session_data *sd)
 /// @copydoc lclif_interface::auth_failed()
 static void lclif_send_auth_failed(int fd, time_t ban, uint32 error)
 {
-#if PACKETVER_ZERO_NUM >= 20180627
+#if PACKETVER >= 20180627
 	struct packet_AC_REFUSE_LOGIN_R2 *packet = NULL;
 	int packet_id = PACKET_ID_AC_REFUSE_LOGIN_R3;
 #elif PACKETVER >= 20101123
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h
index d15b8926f..71f71f083 100644
--- a/src/map/packets_struct.h
+++ b/src/map/packets_struct.h
@@ -373,7 +373,7 @@ enum packet_headers {
 #elif PACKETVER >= 20150128
 	openUiType = 0xA38,
 #endif
-#if PACKETVER_ZERO_NUM >= 20180627
+#if PACKETVER >= 20180627
 	authError = 0xb02,
 #elif PACKETVER >= 20101123
 	authError = 0x83e,
-- 
cgit v1.2.3-70-g09d2