summaryrefslogtreecommitdiff
path: root/src/map/chrif.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/chrif.c')
-rw-r--r--src/map/chrif.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c
index 11ce53ae7..390c53966 100644
--- a/src/map/chrif.c
+++ b/src/map/chrif.c
@@ -273,11 +273,7 @@ int chrif_removemap(int fd)
// received after a character has been "final saved" on the char-server
int chrif_save_ack(int fd)
{
- struct map_session_data *sd;
- sd = map_id2sd(RFIFOL(fd,2));
-
- if (sd && sd->status.char_id == RFIFOL(fd,6))
- map_quit_ack(sd);
+ map_quit_ack(RFIFOL(fd,2), RFIFOL(fd,6));
return 0;
}
@@ -332,7 +328,7 @@ int chrif_changemapserverack(int account_id, int login_id1, int login_id2, int c
//Player has been saved already, remove him from memory. [Skotlex]
map_quit(sd);
- map_quit_ack(sd);
+ map_quit_ack(sd->status.account_id, sd->status.char_id);
return 0;
}