Fix /rank

minTime being NULL means no rank
This commit is contained in:
Dennis Felsing 2024-08-08 17:13:46 +02:00
parent 647abbd801
commit 49bef9c453

View file

@ -850,7 +850,7 @@ bool CScoreWorker::ShowRank(IDbConnection *pSqlServer, const ISqlData *pGameData
return true; return true;
} }
if(!End) if(!End && !pSqlServer->IsNull(2))
{ {
int Rank = pSqlServer->GetInt(1); int Rank = pSqlServer->GetInt(1);
float Time = pSqlServer->GetFloat(2); float Time = pSqlServer->GetFloat(2);