summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-04-18 14:39:11 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-04-18 14:39:11 +0000
commit55af5ea9f16c710fd5c1685aeab5203098bd598c (patch)
tree01c6cfde7d32a4dd6e9f85c7f3348ad4e2148dea /src/map/pc.c
parent42c06c98c7df72f47c7dde05c6c375ce74f41cc2 (diff)
downloadhercules-55af5ea9f16c710fd5c1685aeab5203098bd598c.tar.gz
hercules-55af5ea9f16c710fd5c1685aeab5203098bd598c.tar.bz2
hercules-55af5ea9f16c710fd5c1685aeab5203098bd598c.tar.xz
hercules-55af5ea9f16c710fd5c1685aeab5203098bd598c.zip
- Some more cleanups that should prevent the double-login issue even further.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10286 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 6d0c88b05..cff5069d5 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -580,8 +580,9 @@ int pc_authok(struct map_session_data *sd, int login_id2, time_t connect_until_t
ShowDebug("pc_authok: Received auth ok for already authorized client (account id %d)!\n", sd->bl.id);
return 1;
}
-
+
sd->login_id2 = login_id2;
+ memcpy(&sd->status, st, sizeof(*st));
if (st->sex != sd->status.sex) {
clif_authfail_fd(sd->fd, 0);
@@ -598,7 +599,6 @@ int pc_authok(struct map_session_data *sd, int login_id2, time_t connect_until_t
clif_authfail_fd(sd->fd, 8); // still recognizes last connection
return 1;
}
- memcpy(&sd->status, st, sizeof(*st));
//Set the map-server used job id. [Skotlex]
i = pc_jobid2mapid(sd->status.class_);