summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 5c5b08a49..295bc3b3b 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -5904,7 +5904,7 @@ int pc_setreg(struct map_session_data* sd, int reg, int val)
}
ARR_FIND( 0, sd->reg_num, i, sd->reg[i].data == 0 );
- if( i == sd->regstr_num )
+ if( i == sd->reg_num )
{// nothing free, increase size
sd->reg_num++;
RECREATE(sd->reg, struct script_reg, sd->reg_num);
@@ -5936,11 +5936,6 @@ int pc_setregstr(struct map_session_data* sd, int reg, char* str)
nullpo_retr(0, sd);
- if(str && strlen(str)+1 >= sizeof(sd->regstr[0].data)){
- ShowWarning("pc_setregstr: string too long !\n");
- return 0;
- }
-
ARR_FIND( 0, sd->regstr_num, i, sd->regstr[i].index == reg );
if( i < sd->regstr_num )
{// found entry, update