From 3a8837f924924ee5193d4a9b1d6da8d53cbba222 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Sun, 27 Oct 2013 18:21:49 -0200 Subject: query_sql script command modification query_sql will now halt the script execution when a invalid query is used. Signed-off-by: shennetsind --- src/map/script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map') diff --git a/src/map/script.c b/src/map/script.c index 6198f21da..2a83f3918 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -14015,7 +14015,7 @@ int buildin_query_sql_sub(struct script_state* st, Sql* handle) if( SQL_ERROR == SQL->QueryStr(handle, query) ) { Sql_ShowDebug(handle); - script_pushint(st, 0); + st->state = END; return false; } -- cgit v1.2.3-70-g09d2