summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-10-27 18:21:49 -0200
committershennetsind <ind@henn.et>2013-10-27 18:21:49 -0200
commit3a8837f924924ee5193d4a9b1d6da8d53cbba222 (patch)
treee69dc68d9acc8ae0cf186563ea2446e727e24a87 /src
parente587d715cbc30127482c1f7103be7542c7bdd0e7 (diff)
downloadhercules-3a8837f924924ee5193d4a9b1d6da8d53cbba222.tar.gz
hercules-3a8837f924924ee5193d4a9b1d6da8d53cbba222.tar.bz2
hercules-3a8837f924924ee5193d4a9b1d6da8d53cbba222.tar.xz
hercules-3a8837f924924ee5193d4a9b1d6da8d53cbba222.zip
query_sql script command modification
query_sql will now halt the script execution when a invalid query is used. Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src')
-rw-r--r--src/map/script.c2
1 files changed, 1 insertions, 1 deletions
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;
}