diff --git a/RaceTimer/scripting/unloze_racetimer_redux.sp b/RaceTimer/scripting/unloze_racetimer_redux.sp index 69491200..bfb99388 100644 --- a/RaceTimer/scripting/unloze_racetimer_redux.sp +++ b/RaceTimer/scripting/unloze_racetimer_redux.sp @@ -665,7 +665,10 @@ public void insertPlayerMYSQL(int client) int size2 = 2 * strlen(sName) + 1; char[] sEscapedName = new char[size2 + 1]; if (!g_dDatabase) + { Database.Connect(SQL_OnDatabaseConnect, "racetimercss"); + return; + } g_dDatabase.Escape(sName, sEscapedName, size2 + 1); if (StrEqual(sSID, "STEAM_ID_STOP_IGNORING_RETVALS") || StrEqual(sSID, "STEAM_ID_PENDING")) {