From c0ef729e6ec74d6a601ca3aeca6da6b2b9703e68 Mon Sep 17 00:00:00 2001
From: gumi <git@gumi.ca>
Date: Tue, 3 Apr 2018 12:37:50 -0400
Subject: always send a 0x2713 to char server when a 0x2712 is received

this should fix the char server freeze bug
---
 src/login/login.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/login/login.cpp b/src/login/login.cpp
index 7ae95c7..971516e 100644
--- a/src/login/login.cpp
+++ b/src/login/login.cpp
@@ -913,14 +913,13 @@ void parse_fromchar(Session *s)
                                     fixed_13.client_protocol_version = auth_fifo[i].client_version;
 
                                     send_fpacket<0x2713, 55>(s, fixed_13);
-                                    break;
+                                    goto x2712_out;
                                 }
                             }
                             break;
                         }
                     }
                     // authentification not found
-                    if (i == AUTH_FIFO_SIZE)
                     {
                         LOGIN_LOG("Char-server '%s': authentification of the account %d REFUSED (ip: %s).\n"_fmt,
                                 server[id].name, acc, ip);
@@ -934,8 +933,9 @@ void parse_fromchar(Session *s)
                         send_fpacket<0x2713, 55>(s, fixed_13);
                     }
                 }
-                break;
             }
+        x2712_out:
+            break;
 
             case 0x2714:
             {
-- 
cgit v1.2.3-70-g09d2