Browse Source

Disconnect player on map-server switch failure (#3895)

Fixes #3894

Thanks to @LunarSHINING
Lemongrass3110 6 years ago
parent
commit
19eef173c1
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/map/chrif.cpp

+ 1 - 0
src/map/chrif.cpp

@@ -490,6 +490,7 @@ int chrif_changemapserverack(uint32 account_id, int login_id1, int login_id2, ui
 	if ( !login_id1 ) {
 	if ( !login_id1 ) {
 		ShowError("map server change failed.\n");
 		ShowError("map server change failed.\n");
 		clif_authfail_fd(node->fd, 0);
 		clif_authfail_fd(node->fd, 0);
+		chrif_char_offline(node->sd);
 	} else
 	} else
 		clif_changemapserver(node->sd, map_index, x, y, ntohl(ip), ntohs(port));
 		clif_changemapserver(node->sd, map_index, x, y, ntohl(ip), ntohs(port));