From c5a6e30ca89d24fdff448146addfe6f2aceabc75 Mon Sep 17 00:00:00 2001 From: christian Date: Mon, 3 May 2021 09:41:03 +0200 Subject: [PATCH] added return fix --- RaceTimer/scripting/unloze_racetimer_redux.sp | 3 +++ 1 file changed, 3 insertions(+) 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")) {