summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIronClawTrem <louie.nutman@gmail.com>2020-04-06 17:33:04 +0100
committerPaweł Redman <pawel.redman@gmail.com>2020-04-06 22:20:59 +0200
commitd7a68bbf35c9a5308a7541522e539af164088295 (patch)
treeb3711aadb176e889974595279b169f5eb4903620 /src
parentc1d5089995b87653739cca9cae6988a4e73bbfff (diff)
SCHACHMEISTAAAAAAA
Diffstat (limited to 'src')
-rw-r--r--src/game/g_client.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/g_client.c b/src/game/g_client.c
index ea4e5c9..45737f1 100644
--- a/src/game/g_client.c
+++ b/src/game/g_client.c
@@ -1438,7 +1438,7 @@ const char *ClientConnect( int clientNum, qboolean firstTime )
char ip[ 16 ] = {""};
char reason[ MAX_STRING_CHARS ] = {""};
int i;
- schachtmeisterJudgement_t *smj = NULL;
+ schachtmeisterJudgement_t *smj;
ent = &g_entities[ clientNum ];
@@ -1513,6 +1513,8 @@ const char *ClientConnect( int clientNum, qboolean firstTime )
strcmp( g_password.string, value ) != 0 )
return "Invalid password";
+ smj = NULL;
+
if (!(G_admin_permission_guid(guid, ADMF_NOAUTOBAHN)
|| G_admin_permission_guid(guid, ADMF_IMMUNITY)))
{