summaryrefslogtreecommitdiff
path: root/src/map/chrif.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-07 18:21:49 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-07 18:21:49 +0000
commit1e1fee4e8e3c9cc5636afcbeeacd9e833a9aecd7 (patch)
tree1ec05ad48ca6a62e7327a8d2c4a22b80de4219ec /src/map/chrif.c
parent959387743887e9a57cf31b950f23be9bd34b919f (diff)
downloadhercules-1e1fee4e8e3c9cc5636afcbeeacd9e833a9aecd7.tar.gz
hercules-1e1fee4e8e3c9cc5636afcbeeacd9e833a9aecd7.tar.bz2
hercules-1e1fee4e8e3c9cc5636afcbeeacd9e833a9aecd7.tar.xz
hercules-1e1fee4e8e3c9cc5636afcbeeacd9e833a9aecd7.zip
- Some cleaning of the Sage endow skills.
- Added a check to free a character from memory when changing map servers. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7571 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/chrif.c')
-rw-r--r--src/map/chrif.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c
index 0e11c6741..9e98b5eb9 100644
--- a/src/map/chrif.c
+++ b/src/map/chrif.c
@@ -382,6 +382,10 @@ int chrif_changemapserverack(int fd)
return 0;
}
clif_changemapserver(sd, (char*)mapindex_id2name(RFIFOW(fd,18)), RFIFOW(fd,20), RFIFOW(fd,22), RFIFOL(fd,24), RFIFOW(fd,28));
+
+ //Player has been saved already, remove him from memory. [Skotlex]
+ map_quit(sd);
+ map_quit_ack(sd);
return 0;
}