summaryrefslogtreecommitdiff
path: root/src/map/intif.c
diff options
context:
space:
mode:
authoramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-30 04:11:20 +0000
committeramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-30 04:11:20 +0000
commit0c4624f0d3e7e7263608545f50add7dbea83d794 (patch)
treecd71653c95820d2c34ce91fb2a8d5f0b1ca98b1e /src/map/intif.c
parent790cd65db9cd68f6d541120a492542dfc73aa2c0 (diff)
downloadhercules-0c4624f0d3e7e7263608545f50add7dbea83d794.tar.gz
hercules-0c4624f0d3e7e7263608545f50add7dbea83d794.tar.bz2
hercules-0c4624f0d3e7e7263608545f50add7dbea83d794.tar.xz
hercules-0c4624f0d3e7e7263608545f50add7dbea83d794.zip
update
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@868 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/intif.c')
-rw-r--r--src/map/intif.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/intif.c b/src/map/intif.c
index 8e0267781..9ba9b1ebb 100644
--- a/src/map/intif.c
+++ b/src/map/intif.c
@@ -196,6 +196,9 @@ int intif_saveaccountreg(struct map_session_data *sd) {
nullpo_retr(0, sd);
+ if (sd->status.account_reg_num == -1)
+ return 0;
+
WFIFOW(inter_fd,0) = 0x3004;
WFIFOL(inter_fd,4) = sd->bl.id;
for(j=0,p=8;j<sd->status.account_reg_num;j++,p+=36){
@@ -216,6 +219,9 @@ int intif_request_accountreg(struct map_session_data *sd)
WFIFOW(inter_fd,0) = 0x3005;
WFIFOL(inter_fd,2) = sd->bl.id;
WFIFOSET(inter_fd,6);
+
+ sd->status.account_reg_num = -1;
+
return 0;
}