From ebaefc14762b519479ec17596dedf8f53cb37388 Mon Sep 17 00:00:00 2001 From: aleos89 Date: Wed, 2 Sep 2015 10:32:00 -0400 Subject: [PATCH] Bug Fix * Fixes #615 - Fixed script command 'query_sql' not returning any results. --- src/map/script.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/map/script.c b/src/map/script.c index 299c6f31c3..21a7b4354e 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -4415,9 +4415,9 @@ void script_generic_ui_array_expand (unsigned int plus) RECREATE(generic_ui_array, unsigned int, generic_ui_array_size); } -#ifdef BETA_THREAD_TEST -int buildin_query_sql_sub(struct script_state* st, Sql* handle); +int buildin_query_sql_sub(struct script_state *st, Sql *handle); +#ifdef BETA_THREAD_TEST /* used to receive items the queryThread has already processed */ int queryThread_timer(int tid, unsigned int tick, int id, intptr_t data) { int i, cursor = 0; @@ -15948,7 +15948,7 @@ int buildin_query_sql_sub(struct script_state* st, Sql* handle) const char* query; struct script_data* data; const char* name; - int max_rows = SCRIPT_MAX_ARRAYSIZE; // maximum number of rows + unsigned int max_rows = SCRIPT_MAX_ARRAYSIZE; // maximum number of rows int num_vars; int num_cols;