summaryrefslogtreecommitdiff
path: root/src/map/chrif.c
diff options
context:
space:
mode:
authortoms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-04-21 16:19:25 +0000
committertoms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-04-21 16:19:25 +0000
commite8b3eecf9e259b11fc01e3856df14ddd77b5d631 (patch)
tree95d613d71f84038d1d8611c139b0f154236267d5 /src/map/chrif.c
parent51fe7bd67c35e60e46ea47d485f25eaefccc87a6 (diff)
downloadhercules-e8b3eecf9e259b11fc01e3856df14ddd77b5d631.tar.gz
hercules-e8b3eecf9e259b11fc01e3856df14ddd77b5d631.tar.bz2
hercules-e8b3eecf9e259b11fc01e3856df14ddd77b5d631.tar.xz
hercules-e8b3eecf9e259b11fc01e3856df14ddd77b5d631.zip
Made some cleanup in changesex
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12626 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/chrif.c')
-rw-r--r--src/map/chrif.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c
index a2604dcf3..7ca140159 100644
--- a/src/map/chrif.c
+++ b/src/map/chrif.c
@@ -786,7 +786,11 @@ int chrif_changesex(struct map_session_data *sd)
WFIFOSET(char_fd,44);
clif_displaymessage(sd->fd, "Need disconnection to perform change-sex request...");
- map_quit(sd);
+
+ if (sd->fd)
+ clif_authfail_fd(sd->fd, 15);
+ else
+ map_quit(sd);
return 0;
}