hopefully fixed database connection

This commit is contained in:
Christian 2021-03-09 10:14:18 +01:00
parent d2ef826790
commit f3898a1663

View File

@ -151,15 +151,10 @@ public void SQL_FinishedQuery(Database db, DBResultSet results, const char[] err
public void OnMapStart()
{
if (!g_dDatabase)
Database.Connect(SQL_OnDatabaseConnect, "racetimercss");
}
public void OnMapEnd()
{
if (g_dDatabase != null)
delete g_dDatabase;
}
//----------------------------------------------------------------------------------------------------
// Purpose:
//----------------------------------------------------------------------------------------------------