summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-03 08:05:28 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-03 08:05:28 +0000
commitc535a97d4832b1ed485ec129f941aa89fa3fbd3d (patch)
tree567f1b5728e23c8830f8925ace0fa3ca39acfda7 /src/map/script.c
parente92404724e395fb51711a318f2fba530055fb4c8 (diff)
downloadhercules-c535a97d4832b1ed485ec129f941aa89fa3fbd3d.tar.gz
hercules-c535a97d4832b1ed485ec129f941aa89fa3fbd3d.tar.bz2
hercules-c535a97d4832b1ed485ec129f941aa89fa3fbd3d.tar.xz
hercules-c535a97d4832b1ed485ec129f941aa89fa3fbd3d.zip
* IDE error.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5442 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 0fa99a72e..d32a6492b 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -10582,8 +10582,8 @@ static int script_save_mapreg_intsub(DBKey key,void *data,va_list ap)
char *name=str_buf+str_data[num].str;
if ( name[1] != '@') {
sprintf(tmp_sql,"UPDATE `%s` SET `%s`='%d' WHERE `%s`='%s' AND `%s`='%d'",mapregsql_db,mapregsql_db_value,(int)data,mapregsql_db_varname,name,mapregsql_db_index,i);
- if(mysql_query(&mapregsql_handle, tmp_sql) ) {
- ShowSQL("DB error - %s\n",mysql_error(&mapregsql_handle));
+ if(mysql_query(&mmyregsql_handle, tmp_sql) ) {
+ ShowSQL("DB error - %s\n",mysql_error(&mmysql_handle));
ShowDebug("at %s:%d - %s\n", __FILE__,__LINE__,tmp_sql);
}
}
@@ -10609,8 +10609,8 @@ static int script_save_mapreg_strsub(DBKey key,void *data,va_list ap)
char *name=str_buf+str_data[num].str;
if ( name[1] != '@') {
sprintf(tmp_sql,"UPDATE `%s` SET `%s`='%s' WHERE `%s`='%s' AND `%s`='%d'",mapregsql_db,mapregsql_db_value,jstrescapecpy(tmp_str2,(char *)data),mapregsql_db_varname,name,mapregsql_db_index,i);
- if(mysql_query(&mapregsql_handle, tmp_sql) ) {
- ShowSQL("DB error - %s\n",mysql_error(&mapregsql_handle));
+ if(mysql_query(&mmysql_handle, tmp_sql) ) {
+ ShowSQL("DB error - %s\n",mysql_error(&mmysql_handle));
ShowDebug("at %s:%d - %s\n", __FILE__,__LINE__,tmp_sql);
}
}