From 4a2794bbe3d4d1a0e9866b0a5d3459c75cd59ecb Mon Sep 17 00:00:00 2001 From: shennetsind Date: Thu, 16 Jan 2014 17:11:20 -0200 Subject: Minor redundancy fix on mapreg loading so that it skips set_reg. Thanks to Michieru Signed-off-by: shennetsind --- src/map/mapreg_sql.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map/mapreg_sql.c') 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)); } } -- cgit v1.2.3-60-g2f50