From 87eb2f98518a63a3f640b97ad62c8b18a5d6b946 Mon Sep 17 00:00:00 2001 From: gumi Date: Mon, 30 Jul 2018 11:55:45 -0400 Subject: always set the type when doing script->add_str --- src/map/mapreg_sql.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/mapreg_sql.c') diff --git a/src/map/mapreg_sql.c b/src/map/mapreg_sql.c index 6e8b8f9b0..516be56cb 100644 --- a/src/map/mapreg_sql.c +++ b/src/map/mapreg_sql.c @@ -221,7 +221,7 @@ static void script_load_mapreg(void) SQL->StmtBindColumn(stmt, 2, SQLDT_STRING, &value, sizeof value, NULL, NULL); while ( SQL_SUCCESS == SQL->StmtNextRow(stmt) ) { - int s = script->add_str(varname); + int s = script->add_variable(varname); int i = index; -- cgit v1.2.3-70-g09d2