Skip to content

Commit

Permalink
query_sql script command modification
Browse files Browse the repository at this point in the history
query_sql will now halt the script execution when a invalid query is used.

Signed-off-by: shennetsind <ind@henn.et>
  • Loading branch information
shennetsind committed Oct 27, 2013
1 parent e587d71 commit 3a8837f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/map/script.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 3a8837f

Please sign in to comment.