ConnectAnnounce: neon is kinda sus

This commit is contained in:
dogan 2020-11-17 20:00:07 +01:00
parent 84223aee22
commit 09868ec493

View File

@ -300,14 +300,17 @@ public void TQueryCB(Handle owner, Handle rs, const char[] error, any data)
}
int iRank = -1;
if (SQL_GetRowCount(rs) > 0)
if ((rs != INVALID_HANDLE))
{
int iField;
if (SQL_GetRowCount(rs) > 0)
{
int iField;
SQL_FetchRow(rs);
SQL_FieldNameToNum(rs, "rank", iField);
iRank = SQL_FetchInt(rs, iField);
iRank += 1;
SQL_FetchRow(rs);
SQL_FieldNameToNum(rs, "rank", iField);
iRank = SQL_FetchInt(rs, iField);
iRank += 1;
}
}
Handle hFile = OpenFile(g_sDataFile, "r");
static char sRawMsg[301];