minor fixes to errors mentioned

This commit is contained in:
jenz
2023-09-02 16:20:31 +02:00
parent be2c2797ab
commit a4b527ea22
2 changed files with 12 additions and 1 deletions
@@ -174,7 +174,7 @@ public void sql_select_hiding_unavailable_maps(int client)
public void SQL_OnQueryCompleted_ignoring(Database db, DBResultSet results, const char[] error, int Serial)
{
if (!db)
if (!db || results == INVALID_HANDLE)
{
delete results;
return;
@@ -189,7 +189,9 @@ public void SQL_OnQueryCompleted_ignoring(Database db, DBResultSet results, cons
{
int val = 0;
if (results.RowCount && results.FetchRow())
{
val = results.FetchInt(0);
}
if (val == 1)
{
g_bClientsIgnoring[client] = true;