From 210c7db380e555a76f06124056a79631cefaaae2 Mon Sep 17 00:00:00 2001 From: Kevin Date: Fri, 4 Apr 2008 07:19:47 +0000 Subject: Bug fixes for Auth Glitch and Map server crash through script warp when changing map servers. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12473 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/chrif.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/map/chrif.c') diff --git a/src/map/chrif.c b/src/map/chrif.c index 583c22ad6..36f57a892 100644 --- a/src/map/chrif.c +++ b/src/map/chrif.c @@ -400,8 +400,12 @@ int chrif_changemapserverack(int account_id, int login_id1, int login_id2, int c } else clif_changemapserver(node->sd, map_index, x, y, ntohl(ip), ntohs(port)); + //Free session data from this map server [Kevin] + unit_free_pc(sd); + //Player has been saved already, remove him from memory. [Skotlex] chrif_auth_delete(account_id, char_id, ST_MAPCHANGE); + return 0; } -- cgit v1.2.3-60-g2f50