diff options
author | shennetsind <ind@henn.et> | 2014-01-16 17:11:20 -0200 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2014-01-16 17:11:20 -0200 |
commit | 4a2794bbe3d4d1a0e9866b0a5d3459c75cd59ecb (patch) | |
tree | 851d597cd5da60da7cfc574d68b9a4ba5f95ac5d /src/map | |
parent | fac54ab4d7a7eea4f356e1c4836e321a14a789d5 (diff) | |
download | hercules-4a2794bbe3d4d1a0e9866b0a5d3459c75cd59ecb.tar.gz hercules-4a2794bbe3d4d1a0e9866b0a5d3459c75cd59ecb.tar.bz2 hercules-4a2794bbe3d4d1a0e9866b0a5d3459c75cd59ecb.tar.xz hercules-4a2794bbe3d4d1a0e9866b0a5d3459c75cd59ecb.zip |
Minor redundancy fix on mapreg loading
so that it skips set_reg.
Thanks to Michieru
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/mapreg_sql.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/mapreg_sql.c b/src/map/mapreg_sql.c index c2a35f930..3cf92454d 100644 --- a/src/map/mapreg_sql.c +++ b/src/map/mapreg_sql.c @@ -173,13 +173,13 @@ void script_load_mapreg(void) { ShowWarning("load_mapreg: duplicate! '%s' => '%s' skipping...\n",varname,value); continue; } - script->set_reg(NULL,NULL,reference_uid(s, i), varname, (void*)value, NULL); + mapreg->setregstr(reference_uid(s, i),value); } else { if( i64db_exists(mapreg->db, reference_uid(s, i)) ) { ShowWarning("load_mapreg: duplicate! '%s' => '%s' skipping...\n",varname,value); continue; } - script->set_reg(NULL,NULL,reference_uid(s, i), varname, (void*)__64BPTRSIZE(atoi(value)), NULL); + mapreg->setreg(reference_uid(s, i),atoi(value)); } } |