From 19eef173c1c038d468e6bbbe351882713e2509ab Mon Sep 17 00:00:00 2001 From: Lemongrass3110 Date: Tue, 29 Jan 2019 16:08:40 +0100 Subject: [PATCH] Disconnect player on map-server switch failure (#3895) Fixes #3894 Thanks to @LunarSHINING --- src/map/chrif.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/map/chrif.cpp b/src/map/chrif.cpp index 6d61064b01..b7a73b3b25 100644 --- a/src/map/chrif.cpp +++ b/src/map/chrif.cpp @@ -490,6 +490,7 @@ int chrif_changemapserverack(uint32 account_id, int login_id1, int login_id2, ui if ( !login_id1 ) { ShowError("map server change failed.\n"); clif_authfail_fd(node->fd, 0); + chrif_char_offline(node->sd); } else clif_changemapserver(node->sd, map_index, x, y, ntohl(ip), ntohs(port));