diff options
author | amber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-12-30 04:11:20 +0000 |
---|---|---|
committer | amber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-12-30 04:11:20 +0000 |
commit | 0c4624f0d3e7e7263608545f50add7dbea83d794 (patch) | |
tree | cd71653c95820d2c34ce91fb2a8d5f0b1ca98b1e /src/map/pc.c | |
parent | 790cd65db9cd68f6d541120a492542dfc73aa2c0 (diff) | |
download | hercules-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/pc.c')
-rw-r--r-- | src/map/pc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index 3288dd1bc..8f2ce5654 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -6583,6 +6583,12 @@ int pc_setaccountreg(struct map_session_data *sd,char *reg,int val) nullpo_retr(0, sd); + if (sd->status.account_reg_num == -1) { + if(battle_config.error_log) + printf("pc_setaccountreg : refusing to set until vars are received\n"); + return 1; + } + if(val==0){ for(i=0;i<sd->status.account_reg_num;i++){ if(strcmp(sd->status.account_reg[i].str,reg)==0){ |